Skip to content

Commit

Permalink
tomoyo_mini_stat: switch to umode_t
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 84dfa98 commit d179333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions security/tomoyo/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static char *tomoyo_print_bprm(struct linux_binprm *bprm,
*
* Returns file type string.
*/
static inline const char *tomoyo_filetype(const mode_t mode)
static inline const char *tomoyo_filetype(const umode_t mode)
{
switch (mode & S_IFMT) {
case S_IFREG:
Expand Down Expand Up @@ -180,7 +180,7 @@ static char *tomoyo_print_header(struct tomoyo_request_info *r)
for (i = 0; i < TOMOYO_MAX_PATH_STAT; i++) {
struct tomoyo_mini_stat *stat;
unsigned int dev;
mode_t mode;
umode_t mode;
if (!obj->stat_valid[i])
continue;
stat = &obj->stat[i];
Expand Down
2 changes: 1 addition & 1 deletion security/tomoyo/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ struct tomoyo_mini_stat {
uid_t uid;
gid_t gid;
ino_t ino;
mode_t mode;
umode_t mode;
dev_t dev;
dev_t rdev;
};
Expand Down

0 comments on commit d179333

Please sign in to comment.