Lines Matching refs:r

28 static int tomoyo_audit_mount_log(struct tomoyo_request_info *r)  in tomoyo_audit_mount_log()  argument
30 return tomoyo_supervisor(r, "file mount %s %s %s 0x%lX\n", in tomoyo_audit_mount_log()
31 r->param.mount.dev->name, in tomoyo_audit_mount_log()
32 r->param.mount.dir->name, in tomoyo_audit_mount_log()
33 r->param.mount.type->name, in tomoyo_audit_mount_log()
34 r->param.mount.flags); in tomoyo_audit_mount_log()
45 static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r, in tomoyo_check_mount_acl() argument
50 return tomoyo_compare_number_union(r->param.mount.flags, in tomoyo_check_mount_acl()
52 tomoyo_compare_name_union(r->param.mount.type, in tomoyo_check_mount_acl()
54 tomoyo_compare_name_union(r->param.mount.dir, in tomoyo_check_mount_acl()
56 (!r->param.mount.need_dev || in tomoyo_check_mount_acl()
57 tomoyo_compare_name_union(r->param.mount.dev, in tomoyo_check_mount_acl()
74 static int tomoyo_mount_acl(struct tomoyo_request_info *r, in tomoyo_mount_acl() argument
90 r->obj = &obj; in tomoyo_mount_acl()
154 r->param_type = TOMOYO_TYPE_MOUNT_ACL; in tomoyo_mount_acl()
155 r->param.mount.need_dev = need_dev; in tomoyo_mount_acl()
156 r->param.mount.dev = &rdev; in tomoyo_mount_acl()
157 r->param.mount.dir = &rdir; in tomoyo_mount_acl()
158 r->param.mount.type = &rtype; in tomoyo_mount_acl()
159 r->param.mount.flags = flags; in tomoyo_mount_acl()
161 tomoyo_check_acl(r, tomoyo_check_mount_acl); in tomoyo_mount_acl()
162 error = tomoyo_audit_mount_log(r); in tomoyo_mount_acl()
191 struct tomoyo_request_info r; in tomoyo_mount_permission() local
195 if (tomoyo_init_request_info(&r, NULL, TOMOYO_MAC_FILE_MOUNT) in tomoyo_mount_permission()
233 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()