Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280285
b: refs/heads/master
c: 4572bef
h: refs/heads/master
i:
  280283: 2303505
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 65a243b commit a6691f0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d179333f37d33533f4c77118f757b9e7835ccb7c
refs/heads/master: 4572befe248fd0d94aedc98775e3f0ddc8a26651
6 changes: 3 additions & 3 deletions trunk/include/linux/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ struct security_operations {

#ifdef CONFIG_SECURITY_PATH
int (*path_unlink) (struct path *dir, struct dentry *dentry);
int (*path_mkdir) (struct path *dir, struct dentry *dentry, int mode);
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, int mode,
unsigned int dev);
Expand Down Expand Up @@ -2855,7 +2855,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi

#ifdef CONFIG_SECURITY_PATH
int security_path_unlink(struct path *dir, struct dentry *dentry);
int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode);
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, int mode,
unsigned int dev);
Expand All @@ -2877,7 +2877,7 @@ static inline int security_path_unlink(struct path *dir, struct dentry *dentry)
}

static inline int security_path_mkdir(struct path *dir, struct dentry *dentry,
int mode)
umode_t mode)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/apparmor/lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int apparmor_path_unlink(struct path *dir, struct dentry *dentry)
}

static int apparmor_path_mkdir(struct path *dir, struct dentry *dentry,
int mode)
umode_t mode)
{
return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE,
S_IFDIR);
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int cap_path_mknod(struct path *dir, struct dentry *dentry, int mode,
return 0;
}

static int cap_path_mkdir(struct path *dir, struct dentry *dentry, int mode)
static int cap_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int security_path_mknod(struct path *dir, struct dentry *dentry, int mode,
}
EXPORT_SYMBOL(security_path_mknod);

int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode)
int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode)
{
if (unlikely(IS_PRIVATE(dir->dentry->d_inode)))
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/tomoyo/tomoyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry)
* Returns 0 on success, negative value otherwise.
*/
static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry,
int mode)
umode_t mode)
{
struct path path = { parent->mnt, dentry };
return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path,
Expand Down

0 comments on commit a6691f0

Please sign in to comment.