diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-08-26 23:03:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:18 -0500 |
commit | d179333f37d33533f4c77118f757b9e7835ccb7c (patch) | |
tree | 479ae66773eab3fd6aa1c843e753a02063c65d40 /security/tomoyo | |
parent | 84dfa9897ef913771af44484fefbe0de29fdce51 (diff) |
tomoyo_mini_stat: switch to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/tomoyo')
-rw-r--r-- | security/tomoyo/audit.c | 4 | ||||
-rw-r--r-- | security/tomoyo/common.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/security/tomoyo/audit.c b/security/tomoyo/audit.c index 075c3a6d1649..5ca47ea3049f 100644 --- a/security/tomoyo/audit.c +++ b/security/tomoyo/audit.c | |||
@@ -112,7 +112,7 @@ out: | |||
112 | * | 112 | * |
113 | * Returns file type string. | 113 | * Returns file type string. |
114 | */ | 114 | */ |
115 | static inline const char *tomoyo_filetype(const mode_t mode) | 115 | static inline const char *tomoyo_filetype(const umode_t mode) |
116 | { | 116 | { |
117 | switch (mode & S_IFMT) { | 117 | switch (mode & S_IFMT) { |
118 | case S_IFREG: | 118 | case S_IFREG: |
@@ -180,7 +180,7 @@ static char *tomoyo_print_header(struct tomoyo_request_info *r) | |||
180 | for (i = 0; i < TOMOYO_MAX_PATH_STAT; i++) { | 180 | for (i = 0; i < TOMOYO_MAX_PATH_STAT; i++) { |
181 | struct tomoyo_mini_stat *stat; | 181 | struct tomoyo_mini_stat *stat; |
182 | unsigned int dev; | 182 | unsigned int dev; |
183 | mode_t mode; | 183 | umode_t mode; |
184 | if (!obj->stat_valid[i]) | 184 | if (!obj->stat_valid[i]) |
185 | continue; | 185 | continue; |
186 | stat = &obj->stat[i]; | 186 | stat = &obj->stat[i]; |
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index ed311d7a8ce0..deeab7be5b97 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -564,7 +564,7 @@ struct tomoyo_mini_stat { | |||
564 | uid_t uid; | 564 | uid_t uid; |
565 | gid_t gid; | 565 | gid_t gid; |
566 | ino_t ino; | 566 | ino_t ino; |
567 | mode_t mode; | 567 | umode_t mode; |
568 | dev_t dev; | 568 | dev_t dev; |
569 | dev_t rdev; | 569 | dev_t rdev; |
570 | }; | 570 | }; |