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
Kirill Smelkov
linux
Commits
04fc66e7
Commit
04fc66e7
authored
Nov 21, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch ->path_mknod() to umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4572befe
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
include/linux/security.h
include/linux/security.h
+3
-3
net/unix/af_unix.c
net/unix/af_unix.c
+1
-1
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 @
04fc66e7
...
...
@@ -1426,7 +1426,7 @@ struct security_operations {
int
(
*
path_unlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_mkdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
(
*
path_rmdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_mknod
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
(
*
path_mknod
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
);
int
(
*
path_truncate
)
(
struct
path
*
path
);
int
(
*
path_symlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
...
...
@@ -2857,7 +2857,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi
int
security_path_unlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_mkdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
security_path_rmdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
);
int
security_path_truncate
(
struct
path
*
path
);
int
security_path_symlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
...
...
@@ -2888,7 +2888,7 @@ static inline int security_path_rmdir(struct path *dir, struct dentry *dentry)
}
static
inline
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
return
0
;
}
...
...
net/unix/af_unix.c
View file @
04fc66e7
...
...
@@ -847,7 +847,7 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
atomic_set
(
&
addr
->
refcnt
,
1
);
if
(
sun_path
[
0
])
{
u
nsigned
in
t
mode
;
u
mode_
t
mode
;
err
=
0
;
/*
* Get the parent directory, calculate the hash for last
...
...
security/apparmor/lsm.c
View file @
04fc66e7
...
...
@@ -274,7 +274,7 @@ static int apparmor_path_rmdir(struct path *dir, struct dentry *dentry)
}
static
int
apparmor_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
return
common_perm_create
(
OP_MKNOD
,
dir
,
dentry
,
AA_MAY_CREATE
,
mode
);
}
...
...
security/capability.c
View file @
04fc66e7
...
...
@@ -235,7 +235,7 @@ static void cap_inode_getsecid(const struct inode *inode, u32 *secid)
}
#ifdef CONFIG_SECURITY_PATH
static
int
cap_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
cap_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
)
{
return
0
;
...
...
security/security.c
View file @
04fc66e7
...
...
@@ -388,7 +388,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir,
EXPORT_SYMBOL
(
security_old_inode_init_security
);
#ifdef CONFIG_SECURITY_PATH
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
)
{
if
(
unlikely
(
IS_PRIVATE
(
dir
->
dentry
->
d_inode
)))
...
...
security/tomoyo/tomoyo.c
View file @
04fc66e7
...
...
@@ -234,7 +234,7 @@ static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry,
* Returns 0 on success, negative value otherwise.
*/
static
int
tomoyo_path_mknod
(
struct
path
*
parent
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
struct
path
path
=
{
parent
->
mnt
,
dentry
};
int
type
=
TOMOYO_TYPE_CREATE
;
...
...
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