• Home
  • Raw
  • Download

Lines Matching refs:file

459 	struct inode *inode = file_inode(bprm->file);  in smack_bprm_set_creds()
1057 static int smack_file_permission(struct file *file, int mask) in smack_file_permission() argument
1071 static int smack_file_alloc_security(struct file *file) in smack_file_alloc_security() argument
1073 file->f_security = smk_of_current(); in smack_file_alloc_security()
1084 static void smack_file_free_security(struct file *file) in smack_file_free_security() argument
1086 file->f_security = NULL; in smack_file_free_security()
1099 static int smack_file_ioctl(struct file *file, unsigned int cmd, in smack_file_ioctl() argument
1106 smk_ad_setfield_u_fs_path(&ad, file->f_path); in smack_file_ioctl()
1109 rc = smk_curacc(file->f_security, MAY_WRITE, &ad); in smack_file_ioctl()
1112 rc = smk_curacc(file->f_security, MAY_READ, &ad); in smack_file_ioctl()
1124 static int smack_file_lock(struct file *file, unsigned int cmd) in smack_file_lock() argument
1129 smk_ad_setfield_u_fs_path(&ad, file->f_path); in smack_file_lock()
1130 return smk_curacc(file->f_security, MAY_WRITE, &ad); in smack_file_lock()
1145 static int smack_file_fcntl(struct file *file, unsigned int cmd, in smack_file_fcntl() argument
1159 smk_ad_setfield_u_fs_path(&ad, file->f_path); in smack_file_fcntl()
1160 rc = smk_curacc(file->f_security, MAY_WRITE, &ad); in smack_file_fcntl()
1179 static int smack_mmap_file(struct file *file, in smack_mmap_file() argument
1195 if (file == NULL) in smack_mmap_file()
1198 isp = file_inode(file)->i_security; in smack_mmap_file()
1280 static int smack_file_set_fowner(struct file *file) in smack_file_set_fowner() argument
1282 file->f_security = smk_of_current(); in smack_file_set_fowner()
1300 struct file *file; in smack_file_send_sigiotask() local
1308 file = container_of(fown, struct file, f_owner); in smack_file_send_sigiotask()
1311 rc = smk_access(file->f_security, tsp, MAY_WRITE, NULL); in smack_file_send_sigiotask()
1317 smack_log(file->f_security, tsp, MAY_WRITE, rc, &ad); in smack_file_send_sigiotask()
1327 static int smack_file_receive(struct file *file) in smack_file_receive() argument
1333 smk_ad_setfield_u_fs_path(&ad, file->f_path); in smack_file_receive()
1337 if (file->f_mode & FMODE_READ) in smack_file_receive()
1339 if (file->f_mode & FMODE_WRITE) in smack_file_receive()
1342 return smk_curacc(file->f_security, may, &ad); in smack_file_receive()
1354 static int smack_file_open(struct file *file, const struct cred *cred) in smack_file_open() argument
1356 struct inode_smack *isp = file_inode(file)->i_security; in smack_file_open()
1358 file->f_security = isp->smk_inode; in smack_file_open()