hooks.c (05fd934ba585ea8c9f129f15f11327adb1f96fe3) | hooks.c (e817c2f33efb4aa7f02c98dfab9a5f8ff383ea7e) |
---|---|
1/* 2 * NSA Security-Enhanced Linux (SELinux) security module 3 * 4 * This file contains the SELinux hook function implementations. 5 * 6 * Authors: Stephen Smalley, <sds@epoch.ncsc.mil> 7 * Chris Vance, <cvance@nai.com> 8 * Wayne Salamon, <wsalamon@nai.com> --- 3235 unchanged lines hidden (view full) --- 3244 const int len = sizeof(XATTR_NAME_SELINUX); 3245 if (buffer && len <= buffer_size) 3246 memcpy(buffer, XATTR_NAME_SELINUX, len); 3247 return len; 3248} 3249 3250static void selinux_inode_getsecid(struct inode *inode, u32 *secid) 3251{ | 1/* 2 * NSA Security-Enhanced Linux (SELinux) security module 3 * 4 * This file contains the SELinux hook function implementations. 5 * 6 * Authors: Stephen Smalley, <sds@epoch.ncsc.mil> 7 * Chris Vance, <cvance@nai.com> 8 * Wayne Salamon, <wsalamon@nai.com> --- 3235 unchanged lines hidden (view full) --- 3244 const int len = sizeof(XATTR_NAME_SELINUX); 3245 if (buffer && len <= buffer_size) 3246 memcpy(buffer, XATTR_NAME_SELINUX, len); 3247 return len; 3248} 3249 3250static void selinux_inode_getsecid(struct inode *inode, u32 *secid) 3251{ |
3252 struct inode_security_struct *isec = inode_security(inode); | 3252 struct inode_security_struct *isec = inode_security_novalidate(inode); |
3253 *secid = isec->sid; 3254} 3255 3256/* file security operations */ 3257 3258static int selinux_revalidate_file_permission(struct file *file, int mask) 3259{ 3260 const struct cred *cred = current_cred(); --- 3051 unchanged lines hidden --- | 3253 *secid = isec->sid; 3254} 3255 3256/* file security operations */ 3257 3258static int selinux_revalidate_file_permission(struct file *file, int mask) 3259{ 3260 const struct cred *cred = current_cred(); --- 3051 unchanged lines hidden --- |