aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/mount.c')
-rw-r--r--security/tomoyo/mount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
index 7872226f72ee..cfeff871908e 100644
--- a/security/tomoyo/mount.c
+++ b/security/tomoyo/mount.c
@@ -55,8 +55,8 @@ static int tomoyo_audit_mount_log(struct tomoyo_request_info *r)
55 flags); 55 flags);
56 return tomoyo_supervisor(r, 56 return tomoyo_supervisor(r,
57 TOMOYO_KEYWORD_ALLOW_MOUNT "%s %s %s 0x%lX\n", 57 TOMOYO_KEYWORD_ALLOW_MOUNT "%s %s %s 0x%lX\n",
58 tomoyo_file_pattern(r->param.mount.dev), 58 tomoyo_pattern(r->param.mount.dev),
59 tomoyo_file_pattern(r->param.mount.dir), type, 59 tomoyo_pattern(r->param.mount.dir), type,
60 flags); 60 flags);
61} 61}
62 62
@@ -250,7 +250,7 @@ static bool tomoyo_same_mount_acl(const struct tomoyo_acl_info *a,
250} 250}
251 251
252/** 252/**
253 * tomoyo_write_mount_policy - Write "struct tomoyo_mount_acl" list. 253 * tomoyo_write_mount - Write "struct tomoyo_mount_acl" list.
254 * 254 *
255 * @data: String to parse. 255 * @data: String to parse.
256 * @domain: Pointer to "struct tomoyo_domain_info". 256 * @domain: Pointer to "struct tomoyo_domain_info".
@@ -260,8 +260,8 @@ static bool tomoyo_same_mount_acl(const struct tomoyo_acl_info *a,
260 * 260 *
261 * Caller holds tomoyo_read_lock(). 261 * Caller holds tomoyo_read_lock().
262 */ 262 */
263int tomoyo_write_mount_policy(char *data, struct tomoyo_domain_info *domain, 263int tomoyo_write_mount(char *data, struct tomoyo_domain_info *domain,
264 const bool is_delete) 264 const bool is_delete)
265{ 265{
266 struct tomoyo_mount_acl e = { .head.type = TOMOYO_TYPE_MOUNT_ACL }; 266 struct tomoyo_mount_acl e = { .head.type = TOMOYO_TYPE_MOUNT_ACL };
267 int error = is_delete ? -ENOENT : -ENOMEM; 267 int error = is_delete ? -ENOENT : -ENOMEM;