Loading include/linux/lsm_hooks.h +1 −1 Original line number Diff line number Diff line Loading @@ -1376,7 +1376,7 @@ union security_list_options { struct dentry *new_dentry); int (*path_chmod)(const struct path *path, umode_t mode); int (*path_chown)(const struct path *path, kuid_t uid, kgid_t gid); int (*path_chroot)(struct path *path); int (*path_chroot)(const struct path *path); #endif int (*inode_alloc_security)(struct inode *inode); Loading include/linux/security.h +2 −2 Original line number Diff line number Diff line Loading @@ -1457,7 +1457,7 @@ int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, unsigned int flags); int security_path_chmod(const struct path *path, umode_t mode); int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); int security_path_chroot(struct path *path); int security_path_chroot(const struct path *path); #else /* CONFIG_SECURITY_PATH */ static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) { Loading Loading @@ -1518,7 +1518,7 @@ static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_ return 0; } static inline int security_path_chroot(struct path *path) static inline int security_path_chroot(const struct path *path) { return 0; } Loading security/security.c +1 −1 Original line number Diff line number Diff line Loading @@ -499,7 +499,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) return call_int_hook(path_chown, 0, path, uid, gid); } int security_path_chroot(struct path *path) int security_path_chroot(const struct path *path) { return call_int_hook(path_chroot, 0, path); } Loading security/tomoyo/tomoyo.c +1 −1 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) * * Returns 0 on success, negative value otherwise. */ static int tomoyo_path_chroot(struct path *path) static int tomoyo_path_chroot(const struct path *path) { return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); } Loading Loading
include/linux/lsm_hooks.h +1 −1 Original line number Diff line number Diff line Loading @@ -1376,7 +1376,7 @@ union security_list_options { struct dentry *new_dentry); int (*path_chmod)(const struct path *path, umode_t mode); int (*path_chown)(const struct path *path, kuid_t uid, kgid_t gid); int (*path_chroot)(struct path *path); int (*path_chroot)(const struct path *path); #endif int (*inode_alloc_security)(struct inode *inode); Loading
include/linux/security.h +2 −2 Original line number Diff line number Diff line Loading @@ -1457,7 +1457,7 @@ int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, unsigned int flags); int security_path_chmod(const struct path *path, umode_t mode); int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); int security_path_chroot(struct path *path); int security_path_chroot(const struct path *path); #else /* CONFIG_SECURITY_PATH */ static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) { Loading Loading @@ -1518,7 +1518,7 @@ static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_ return 0; } static inline int security_path_chroot(struct path *path) static inline int security_path_chroot(const struct path *path) { return 0; } Loading
security/security.c +1 −1 Original line number Diff line number Diff line Loading @@ -499,7 +499,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) return call_int_hook(path_chown, 0, path, uid, gid); } int security_path_chroot(struct path *path) int security_path_chroot(const struct path *path) { return call_int_hook(path_chroot, 0, path); } Loading
security/tomoyo/tomoyo.c +1 −1 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) * * Returns 0 on success, negative value otherwise. */ static int tomoyo_path_chroot(struct path *path) static int tomoyo_path_chroot(const struct path *path) { return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); } Loading