new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -349,8 +349,8 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
|
||||
unsigned int state;
|
||||
struct file_perms perms = {};
|
||||
struct path_cond cond = {
|
||||
bprm->file->f_path.dentry->d_inode->i_uid,
|
||||
bprm->file->f_path.dentry->d_inode->i_mode
|
||||
file_inode(bprm->file)->i_uid,
|
||||
file_inode(bprm->file)->i_mode
|
||||
};
|
||||
const char *name = NULL, *target = NULL, *info = NULL;
|
||||
int error = cap_bprm_set_creds(bprm);
|
||||
|
Reference in New Issue
Block a user