Lines Matching defs:path
1300 char *buffer, *path;
1306 path = dentry_path_raw(dentry, buffer, PAGE_SIZE);
1307 if (IS_ERR(path))
1308 rc = PTR_ERR(path);
1314 while (path[1] >= '0' && path[1] <= '9') {
1315 path[1] = '/';
1316 path++;
1320 path, tclass, sid);
1677 the path to help the auditing code to more easily generate the
1680 const struct path *path,
1683 struct inode *inode = d_backing_inode(path->dentry);
1687 ad.u.path = *path;
1688 __inode_security_revalidate(inode, path->dentry, true);
2065 ad.u.path = file->f_path;
2437 Use file_path_has_perm on the tty path directly
2737 const struct path *path,
2745 return superblock_has_perm(cred, path->dentry->d_sb,
2748 return path_has_perm(cred, path, FILE__MOUNTON);
2751 static int selinux_move_mount(const struct path *from_path,
2752 const struct path *to_path)
3109 static int selinux_inode_getattr(const struct path *path)
3111 return path_has_perm(current_cred(), path, FILE__GETATTR);
3294 static int selinux_path_notify(const struct path *path, u64 mask,
3303 ad.u.path = *path;
3315 ret = superblock_has_perm(current_cred(), path->dentry->d_sb,
3335 return path_has_perm(current_cred(), path, perm);
3597 ad.u.op->path = file->f_path;
5624 /* we do this in the FORWARD path and not the POST_ROUTING
5625 * path because we want to make sure we apply the necessary
5659 /* we do this in the LOCAL_OUT path and not the POST_ROUTING path