Lines Matching refs:r
30 static int tomoyo_audit_mount_log(struct tomoyo_request_info *r) in tomoyo_audit_mount_log() argument
32 return tomoyo_supervisor(r, "file mount %s %s %s 0x%lX\n", in tomoyo_audit_mount_log()
33 r->param.mount.dev->name, in tomoyo_audit_mount_log()
34 r->param.mount.dir->name, in tomoyo_audit_mount_log()
35 r->param.mount.type->name, in tomoyo_audit_mount_log()
36 r->param.mount.flags); in tomoyo_audit_mount_log()
47 static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r, in tomoyo_check_mount_acl() argument
53 return tomoyo_compare_number_union(r->param.mount.flags, in tomoyo_check_mount_acl()
55 tomoyo_compare_name_union(r->param.mount.type, in tomoyo_check_mount_acl()
57 tomoyo_compare_name_union(r->param.mount.dir, in tomoyo_check_mount_acl()
59 (!r->param.mount.need_dev || in tomoyo_check_mount_acl()
60 tomoyo_compare_name_union(r->param.mount.dev, in tomoyo_check_mount_acl()
77 static int tomoyo_mount_acl(struct tomoyo_request_info *r, in tomoyo_mount_acl() argument
94 r->obj = &obj; in tomoyo_mount_acl()
158 r->param_type = TOMOYO_TYPE_MOUNT_ACL; in tomoyo_mount_acl()
159 r->param.mount.need_dev = need_dev; in tomoyo_mount_acl()
160 r->param.mount.dev = &rdev; in tomoyo_mount_acl()
161 r->param.mount.dir = &rdir; in tomoyo_mount_acl()
162 r->param.mount.type = &rtype; in tomoyo_mount_acl()
163 r->param.mount.flags = flags; in tomoyo_mount_acl()
165 tomoyo_check_acl(r, tomoyo_check_mount_acl); in tomoyo_mount_acl()
166 error = tomoyo_audit_mount_log(r); in tomoyo_mount_acl()
195 struct tomoyo_request_info r; in tomoyo_mount_permission() local
199 if (tomoyo_init_request_info(&r, NULL, TOMOYO_MAC_FILE_MOUNT) in tomoyo_mount_permission()
237 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()