Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
910f4ece
Commit
910f4ece
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch security_path_chmod() to umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
49f0a076
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
include/linux/security.h
include/linux/security.h
+3
-3
security/apparmor/lsm.c
security/apparmor/lsm.c
+1
-1
security/capability.c
security/capability.c
+1
-1
security/security.c
security/security.c
+1
-1
security/tomoyo/tomoyo.c
security/tomoyo/tomoyo.c
+1
-1
No files found.
include/linux/security.h
View file @
910f4ece
...
...
@@ -1436,7 +1436,7 @@ struct security_operations {
int
(
*
path_rename
)
(
struct
path
*
old_dir
,
struct
dentry
*
old_dentry
,
struct
path
*
new_dir
,
struct
dentry
*
new_dentry
);
int
(
*
path_chmod
)
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
);
u
mode_t
mode
);
int
(
*
path_chown
)
(
struct
path
*
path
,
uid_t
uid
,
gid_t
gid
);
int
(
*
path_chroot
)
(
struct
path
*
path
);
#endif
...
...
@@ -2867,7 +2867,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
int
security_path_rename
(
struct
path
*
old_dir
,
struct
dentry
*
old_dentry
,
struct
path
*
new_dir
,
struct
dentry
*
new_dentry
);
int
security_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
);
u
mode_t
mode
);
int
security_path_chown
(
struct
path
*
path
,
uid_t
uid
,
gid_t
gid
);
int
security_path_chroot
(
struct
path
*
path
);
#else
/* CONFIG_SECURITY_PATH */
...
...
@@ -2921,7 +2921,7 @@ static inline int security_path_rename(struct path *old_dir,
static
inline
int
security_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
)
u
mode_t
mode
)
{
return
0
;
}
...
...
security/apparmor/lsm.c
View file @
910f4ece
...
...
@@ -345,7 +345,7 @@ static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry,
}
static
int
apparmor_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
)
u
mode_t
mode
)
{
if
(
!
mediated_filesystem
(
dentry
->
d_inode
))
return
0
;
...
...
security/capability.c
View file @
910f4ece
...
...
@@ -280,7 +280,7 @@ static int cap_path_truncate(struct path *path)
}
static
int
cap_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
)
u
mode_t
mode
)
{
return
0
;
}
...
...
security/security.c
View file @
910f4ece
...
...
@@ -455,7 +455,7 @@ int security_path_truncate(struct path *path)
}
int
security_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
)
u
mode_t
mode
)
{
if
(
unlikely
(
IS_PRIVATE
(
dentry
->
d_inode
)))
return
0
;
...
...
security/tomoyo/tomoyo.c
View file @
910f4ece
...
...
@@ -360,7 +360,7 @@ static int tomoyo_file_ioctl(struct file *file, unsigned int cmd,
* Returns 0 on success, negative value otherwise.
*/
static
int
tomoyo_path_chmod
(
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
mode_t
mode
)
u
mode_t
mode
)
{
struct
path
path
=
{
mnt
,
dentry
};
return
tomoyo_path_number_perm
(
TOMOYO_TYPE_CHMOD
,
&
path
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment