GRAYBYTE WORDPRESS FILE MANAGER7525

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/include/sys/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/include/sys//capability.h
/*
 * <sys/capability.h>
 *
 * Copyright (C) 1997   Aleph One
 * Copyright (C) 1997,8, 2008,19,20 Andrew G. Morgan <morgan@kernel.org>
 *
 * defunct POSIX.1e Standard: 25.2 Capabilities           <sys/capability.h>
 */

#ifndef _SYS_CAPABILITY_H
#define _SYS_CAPABILITY_H

#ifdef __cplusplus
extern "C" {
#endif

/*
 * This file complements the kernel file by providing prototype
 * information for the user library.
 */

#include <sys/types.h>
#include <stdint.h>
#include <linux/types.h>

#ifndef __user
#define __user
#endif
#include <linux/capability.h>

/*
 * POSIX capability types
 */

/*
 * Opaque capability handle (defined internally by libcap)
 * internal capability representation
 */
typedef struct _cap_struct *cap_t;

/* "external" capability representation is a (void *) */

/*
 * This is the type used to identify capabilities
 */

typedef int cap_value_t;

/*
 * libcap initialized first unnamed capability of the running kernel.
 * capsh includes a runtime test to flag when this is larger than
 * what is known to libcap... Time for a new libcap release!
 */
extern cap_value_t cap_max_bits(void);

/*
 * Set identifiers
 */
typedef enum {
    CAP_EFFECTIVE = 0,                 /* Specifies the effective flag */
    CAP_PERMITTED = 1,                 /* Specifies the permitted flag */
    CAP_INHERITABLE = 2                /* Specifies the inheritable flag */
} cap_flag_t;

typedef enum {
    CAP_IAB_INH = 2,
    CAP_IAB_AMB = 3,
    CAP_IAB_BOUND = 4
} cap_iab_vector_t;

/*
 * An opaque generalization of the inheritable bits that includes both
 * what ambient bits to raise and what bounding bits to *lower* (aka
 * drop).  None of these bits once set, using cap_iab_set(), affect
 * the running process but are consulted, through the execve() system
 * call, by the kernel. Note, the ambient bits ('A') of the running
 * process are fragile with respect to other aspects of the "posix"
 * (cap_t) operations: most importantly, 'A' cannot ever hold bits not
 * present in the intersection of 'pI' and 'pP'. The kernel
 * immediately drops all ambient caps whenever such a situation
 * arises. Typically, the ambient bits are used to support a naive
 * capability inheritance model - at odds with the POSIX (sic) model
 * of inheritance where inherited (pI) capabilities need to also be
 * wanted by the executed binary (fI) in order to become raised
 * through exec.
 */
typedef struct cap_iab_s *cap_iab_t;

/*
 * These are the states available to each capability
 */
typedef enum {
    CAP_CLEAR=0,                            /* The flag is cleared/disabled */
    CAP_SET=1                                    /* The flag is set/enabled */
} cap_flag_value_t;

/*
 * User-space capability manipulation routines
 */
typedef unsigned cap_mode_t;
#define CAP_MODE_UNCERTAIN    ((cap_mode_t) 0)
#define CAP_MODE_NOPRIV       ((cap_mode_t) 1)
#define CAP_MODE_PURE1E_INIT  ((cap_mode_t) 2)
#define CAP_MODE_PURE1E       ((cap_mode_t) 3)

/* libcap/cap_alloc.c */
extern cap_t      cap_dup(cap_t);
extern int        cap_free(void *);
extern cap_t      cap_init(void);
extern cap_iab_t  cap_iab_init(void);

/* libcap/cap_flag.c */
extern int     cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *);
extern int     cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
			    cap_flag_value_t);
extern int     cap_clear(cap_t);
extern int     cap_clear_flag(cap_t, cap_flag_t);

extern cap_flag_value_t cap_iab_get_vector(cap_iab_t, cap_iab_vector_t,
					 cap_value_t);
extern int     cap_iab_set_vector(cap_iab_t, cap_iab_vector_t, cap_value_t,
				cap_flag_value_t);
extern int     cap_iab_fill(cap_iab_t, cap_iab_vector_t, cap_t, cap_flag_t);

/* libcap/cap_file.c */
extern cap_t   cap_get_fd(int);
extern cap_t   cap_get_file(const char *);
extern uid_t   cap_get_nsowner(cap_t);
extern int     cap_set_fd(int, cap_t);
extern int     cap_set_file(const char *, cap_t);
extern int     cap_set_nsowner(cap_t, uid_t);

/* libcap/cap_proc.c */
extern cap_t   cap_get_proc(void);
extern cap_t   cap_get_pid(pid_t);
extern int     cap_set_proc(cap_t);

extern int     cap_get_bound(cap_value_t);
extern int     cap_drop_bound(cap_value_t);
#define CAP_IS_SUPPORTED(cap)  (cap_get_bound(cap) >= 0)

extern int     cap_get_ambient(cap_value_t);
extern int     cap_set_ambient(cap_value_t, cap_flag_value_t);
extern int     cap_reset_ambient(void);
#define CAP_AMBIENT_SUPPORTED() (cap_get_ambient(CAP_CHOWN) >= 0)

/* libcap/cap_extint.c */
extern ssize_t cap_size(cap_t);
extern ssize_t cap_copy_ext(void *, cap_t, ssize_t);
extern cap_t   cap_copy_int(const void *);

/* libcap/cap_text.c */
extern cap_t   cap_from_text(const char *);
extern char *  cap_to_text(cap_t, ssize_t *);
extern int     cap_from_name(const char *, cap_value_t *);
extern char *  cap_to_name(cap_value_t);

extern char *     cap_iab_to_text(cap_iab_t iab);
extern cap_iab_t  cap_iab_from_text(const char *text);

#define CAP_DIFFERS(result, flag)  (((result) & (1 << (flag))) != 0)
extern int     cap_compare(cap_t, cap_t);

/* libcap/cap_proc.c */
extern void cap_set_syscall(long int (*new_syscall)(long int,
				long int, long int, long int),
			    long int (*new_syscall6)(long int,
				long int, long int, long int,
				long int, long int, long int));

extern int cap_set_mode(cap_mode_t flavor);
extern cap_mode_t cap_get_mode(void);
extern const char *cap_mode_name(cap_mode_t flavor);

extern unsigned cap_get_secbits(void);
extern int cap_set_secbits(unsigned bits);

extern int cap_prctl(long int pr_cmd, long int arg1, long int arg2,
		    long int arg3, long int arg4, long int arg5);
extern int cap_prctlw(long int pr_cmd, long int arg1, long int arg2,
		     long int arg3, long int arg4, long int arg5);

extern int cap_setuid(uid_t uid);
extern int cap_setgroups(gid_t gid, size_t ngroups, const gid_t groups[]);

extern cap_iab_t cap_iab_get_proc(void);
extern int cap_iab_set_proc(cap_iab_t iab);

typedef struct cap_launch_s *cap_launch_t;

extern cap_launch_t cap_new_launcher(const char *arg0, const char * const *argv,
				     const char * const *envp);
extern void cap_launcher_callback(cap_launch_t attr,
				  int (callback_fn)(void *detail));
extern void cap_launcher_setuid(cap_launch_t attr, uid_t uid);
extern void cap_launcher_setgroups(cap_launch_t attr, gid_t gid,
				   int ngroups, const gid_t *groups);
extern void cap_launcher_set_mode(cap_launch_t attr, cap_mode_t flavor);
extern cap_iab_t cap_launcher_set_iab(cap_launch_t attr, cap_iab_t iab);
extern void cap_launcher_set_chroot(cap_launch_t attr, const char *chroot);
extern pid_t cap_launch(cap_launch_t attr, void *data);

/*
 * system calls - look to libc for function to system call
 * mapping. Note, libcap does not use capset directly, but permits the
 * cap_set_syscall() to redirect the system call function.
 */
extern int capget(cap_user_header_t header, cap_user_data_t data);
extern int capset(cap_user_header_t header, const cap_user_data_t data);

/* deprecated - use cap_get_pid() */
extern int capgetp(pid_t pid, cap_t cap_d);

/* not valid with filesystem capability support - use cap_set_proc() */
extern int capsetp(pid_t pid, cap_t cap_d);

#ifdef __cplusplus
}
#endif

#endif /* _SYS_CAPABILITY_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 24 2025 08:30:34
root / root
0755
acct.h
3.219 KB
June 09 2025 20:25:26
root / root
0644
auxv.h
1.229 KB
June 09 2025 20:25:26
root / root
0644
bitypes.h
0.084 KB
June 09 2025 20:25:39
root / root
0644
capability.h
7.063 KB
January 10 2024 14:34:46
root / root
0644
cdefs.h
20.197 KB
June 09 2025 20:25:26
root / root
0644
debugreg.h
3.491 KB
June 09 2025 20:25:26
root / root
0644
dir.h
0.899 KB
June 09 2025 20:25:26
root / root
0644
elf.h
0.999 KB
June 09 2025 20:25:26
root / root
0644
epoll.h
4.307 KB
June 09 2025 20:25:26
root / root
0644
errno.h
0.019 KB
June 09 2025 20:25:24
root / root
0644
eventfd.h
1.366 KB
June 09 2025 20:25:26
root / root
0644
fanotify.h
1.261 KB
June 09 2025 20:25:26
root / root
0644
fcntl.h
0.019 KB
June 09 2025 20:25:26
root / root
0644
file.h
1.635 KB
June 09 2025 20:25:26
root / root
0644
fsuid.h
1.159 KB
June 09 2025 20:25:26
root / root
0644
gmon.h
6.084 KB
June 09 2025 20:25:26
root / root
0644
gmon_out.h
2.573 KB
June 09 2025 20:25:26
root / root
0644
inotify.h
3.747 KB
June 09 2025 20:25:26
root / root
0644
io.h
4.966 KB
June 09 2025 20:25:26
root / root
0644
ioctl.h
1.698 KB
June 09 2025 20:25:26
root / root
0644
ipc.h
1.427 KB
June 09 2025 20:25:26
root / root
0644
kd.h
1.085 KB
June 09 2025 20:25:26
root / root
0644
klog.h
1.175 KB
June 09 2025 20:25:26
root / root
0644
mman.h
5.421 KB
June 09 2025 20:25:26
root / root
0644
mount.h
5.479 KB
June 09 2025 20:25:26
root / root
0644
msg.h
2.31 KB
June 09 2025 20:25:26
root / root
0644
mtio.h
10.9 KB
June 09 2025 20:25:26
root / root
0644
param.h
3.074 KB
June 09 2025 20:25:26
root / root
0644
pci.h
0.9 KB
June 09 2025 20:25:26
root / root
0644
perm.h
1.1 KB
June 09 2025 20:25:26
root / root
0644
personality.h
2.658 KB
June 09 2025 20:25:26
root / root
0644
poll.h
2.489 KB
June 09 2025 20:25:26
root / root
0644
prctl.h
1.033 KB
June 09 2025 20:25:26
root / root
0644
procfs.h
4.868 KB
June 09 2025 20:25:38
root / root
0644
profil.h
1.912 KB
June 09 2025 20:25:26
root / root
0644
psx_syscall.h
2.767 KB
January 10 2024 14:34:46
root / root
0644
ptrace.h
5.848 KB
June 09 2025 20:25:26
root / root
0644
queue.h
19.081 KB
June 09 2025 20:25:26
root / root
0644
quota.h
5.051 KB
June 09 2025 20:25:26
root / root
0644
random.h
1.409 KB
June 09 2025 20:25:24
root / root
0644
raw.h
1.153 KB
June 09 2025 20:25:26
root / root
0644
reboot.h
1.594 KB
June 09 2025 20:25:26
root / root
0644
reg.h
1.783 KB
June 09 2025 20:25:26
root / root
0644
resource.h
3.56 KB
June 09 2025 20:25:26
root / root
0644
sdt-config.h
0.27 KB
October 14 2023 13:06:47
root / root
0644
sdt.h
21.638 KB
October 14 2023 13:06:47
root / root
0644
select.h
4.043 KB
June 09 2025 20:25:26
root / root
0644
sem.h
1.988 KB
June 09 2025 20:25:26
root / root
0644
sendfile.h
1.763 KB
June 09 2025 20:25:26
root / root
0644
shm.h
1.829 KB
June 09 2025 20:25:26
root / root
0644
signal.h
0.02 KB
June 09 2025 20:25:24
root / root
0644
signalfd.h
1.562 KB
June 09 2025 20:25:26
root / root
0644
socket.h
9.964 KB
June 09 2025 20:25:26
root / root
0644
socketvar.h
0.138 KB
June 09 2025 20:25:26
root / root
0644
soundcard.h
0.028 KB
June 09 2025 20:25:26
root / root
0644
stat.h
15.855 KB
June 09 2025 20:25:26
root / root
0644
statfs.h
2.044 KB
June 09 2025 20:25:26
root / root
0644
statvfs.h
2.753 KB
June 09 2025 20:25:26
root / root
0644
swap.h
1.555 KB
June 09 2025 20:25:26
root / root
0644
syscall.h
1.304 KB
June 09 2025 20:25:26
root / root
0644
sysctl.h
1.957 KB
June 09 2025 20:25:26
root / root
0644
sysinfo.h
1.481 KB
June 09 2025 20:25:26
root / root
0644
syslog.h
7.521 KB
June 09 2025 20:25:26
root / root
0644
sysmacros.h
2.053 KB
June 09 2025 20:25:26
root / root
0644
termios.h
0.072 KB
June 09 2025 20:25:26
root / root
0644
time.h
6.5 KB
June 09 2025 20:25:25
root / root
0644
timeb.h
1.344 KB
June 09 2025 20:25:25
root / root
0644
timerfd.h
1.829 KB
June 09 2025 20:25:26
root / root
0644
times.h
1.559 KB
June 09 2025 20:25:25
root / root
0644
timex.h
2.153 KB
June 09 2025 20:25:25
root / root
0644
ttychars.h
2.44 KB
June 09 2025 20:25:26
root / root
0644
ttydefaults.h
3.484 KB
June 09 2025 20:25:26
root / root
0644
types.h
5.578 KB
June 09 2025 20:25:25
root / root
0644
ucontext.h
5.704 KB
June 09 2025 20:25:24
root / root
0644
uio.h
6.132 KB
June 09 2025 20:25:26
root / root
0644
un.h
1.418 KB
June 09 2025 20:25:26
root / root
0644
unistd.h
0.02 KB
June 09 2025 20:25:25
root / root
0644
user.h
5.085 KB
June 09 2025 20:25:26
root / root
0644
utsname.h
2.422 KB
June 09 2025 20:25:25
root / root
0644
vfs.h
0.157 KB
June 09 2025 20:25:26
root / root
0644
vlimit.h
1.835 KB
June 09 2025 20:25:26
root / root
0644
vm86.h
1.17 KB
June 09 2025 20:25:26
root / root
0644
vt.h
0.021 KB
June 09 2025 20:25:26
root / root
0644
vtimes.h
2.404 KB
June 09 2025 20:25:26
root / root
0644
wait.h
5.473 KB
June 09 2025 20:25:25
root / root
0644
xattr.h
4.174 KB
June 09 2025 20:25:26
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF