X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fcapability.h;h=3e569739b463acce22fa3dd557e271bc7d6229b0;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=c96e7b624fce1c7a29b20b8a4c171a903ffca9ed;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/capability.h b/include/linux/capability.h index c96e7b624..3e569739b 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h @@ -43,8 +43,7 @@ typedef struct __user_cap_data_struct { #ifdef __KERNEL__ #include - -extern spinlock_t task_capability_lock; +#include /* #define STRICT_CAP_T_TYPECHECKS */ @@ -235,6 +234,8 @@ typedef __u32 kernel_cap_t; /* Allow enabling/disabling tagged queuing on SCSI controllers and sending arbitrary SCSI commands */ /* Allow setting encryption key on loopback filesystem */ +/* Allow setting zone reclaim policy */ +/* Allow the selection of a security context */ #define CAP_SYS_ADMIN 21 @@ -284,6 +285,15 @@ typedef __u32 kernel_cap_t; #define CAP_LEASE 28 +#define CAP_AUDIT_WRITE 29 + +#define CAP_AUDIT_CONTROL 30 + +/* Allow context manipulations */ +/* Allow changing context info on files */ + +#define CAP_CONTEXT 31 + #ifdef __KERNEL__ /* * Bounding set @@ -353,6 +363,9 @@ static inline kernel_cap_t cap_invert(kernel_cap_t c) #define cap_is_fs_cap(c) (CAP_TO_MASK(c) & CAP_FS_MASK) +int capable(int cap); +int __capable(struct task_struct *t, int cap); + #endif /* __KERNEL__ */ #endif /* !_LINUX_CAPABILITY_H */