Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 39) sorted by relevance

12

/security/tomoyo/
A Dtomoyo.c121 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
133 static int tomoyo_path_truncate(const struct path *path) in tomoyo_path_truncate() argument
160 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
177 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
193 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_rmdir() local
210 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_symlink() local
228 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mknod() local
361 static int tomoyo_path_chmod(const struct path *path, umode_t mode) in tomoyo_path_chmod() argument
396 static int tomoyo_path_chroot(const struct path *path) in tomoyo_path_chroot() argument
412 static int tomoyo_sb_mount(const char *dev_name, const struct path *path, in tomoyo_sb_mount() argument
[all …]
A Drealpath.c94 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument
101 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
103 struct inode *inode = d_backing_inode(path->dentry); in tomoyo_get_absolute_path()
237 char *tomoyo_realpath_from_path(const struct path *path) in tomoyo_realpath_from_path() argument
242 struct dentry *dentry = path->dentry; in tomoyo_realpath_from_path()
267 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
277 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
301 struct path path; in tomoyo_realpath_nofollow() local
303 if (pathname && kern_path(pathname, 0, &path) == 0) { in tomoyo_realpath_nofollow()
304 char *buf = tomoyo_realpath_from_path(&path); in tomoyo_realpath_nofollow()
[all …]
A Dfile.c149 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path) in tomoyo_get_realpath() argument
169 [r->param.path.operation], in tomoyo_audit_path_log()
259 r->param.path.matched_path = in tomoyo_check_path_acl()
708 int tomoyo_path_number_perm(const u8 type, const struct path *path, in tomoyo_path_number_perm() argument
713 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_number_perm()
754 const struct path *path, const int flag) in tomoyo_check_open_permission() argument
761 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_check_open_permission()
803 int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target) in tomoyo_path_perm() argument
807 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_perm()
859 int tomoyo_mkdev_perm(const u8 operation, const struct path *path, in tomoyo_mkdev_perm() argument
[all …]
A Dmount.c79 const struct path *dir, const char *type, in tomoyo_mount_acl()
83 struct path path; in tomoyo_mount_acl() local
136 if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { in tomoyo_mount_acl()
140 obj.path1 = path; in tomoyo_mount_acl()
141 requested_dev_name = tomoyo_realpath_from_path(&path); in tomoyo_mount_acl()
191 int tomoyo_mount_permission(const char *dev_name, const struct path *path, in tomoyo_mount_permission() argument
237 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()
A Dload_policy.c39 struct path path; in tomoyo_policy_loader_exists() local
43 if (kern_path(tomoyo_loader, LOOKUP_FOLLOW, &path)) { in tomoyo_policy_loader_exists()
48 path_put(&path); in tomoyo_policy_loader_exists()
A Dcommon.h440 } path; member
591 struct path path1;
593 struct path path2;
959 char *tomoyo_realpath_from_path(const struct path *path);
970 const struct path *path, const int flag);
981 int tomoyo_mkdev_perm(const u8 operation, const struct path *path,
983 int tomoyo_mount_permission(const char *dev_name, const struct path *path,
987 int tomoyo_path2_perm(const u8 operation, const struct path *path1,
988 const struct path *path2);
989 int tomoyo_path_number_perm(const u8 operation, const struct path *path,
[all …]
/security/apparmor/
A Dpath.c48 static int disconnect(const struct path *path, char *buf, char **name, in disconnect() argument
55 our_mnt(path->mnt))) { in disconnect()
88 static int d_namespace_path(const struct path *path, char *buf, char **name, in d_namespace_path() argument
97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
120 struct path root; in d_namespace_path()
122 res = __d_path(path, &root, buf, buflen); in d_namespace_path()
125 res = d_absolute_path(path, buf, buflen); in d_namespace_path()
126 if (!our_mnt(path->mnt)) in d_namespace_path()
146 } else if (!our_mnt(path->mnt)) in d_namespace_path()
160 if (d_unlinked(path->dentry) && d_is_positive(path->dentry) && in d_namespace_path()
[all …]
A Dmount.c284 AA_BUG(!path); in path_flags()
367 struct aa_profile *profile, const struct path *path, in match_mnt() argument
395 struct aa_label *label, const struct path *path, in aa_remount() argument
404 AA_BUG(!path); in aa_remount()
421 struct aa_label *label, const struct path *path, in aa_bind_mount() argument
430 AA_BUG(!path); in aa_bind_mount()
459 struct aa_label *label, const struct path *path, in aa_mount_change_type() argument
518 const struct path *path, const char *orig_name) in aa_move_mount_old() argument
536 const char *dev_name, const struct path *path, in aa_new_mount() argument
602 struct aa_profile *profile, const struct path *path, in profile_umount() argument
[all …]
A Daf_unix.c34 struct aa_label *label, struct path *path) in unix_fs_perm() argument
37 AA_BUG(!path); in unix_fs_perm()
46 if (path->dentry) { in unix_fs_perm()
227 u32 request, struct sock *sk, struct path *path) in profile_sk_perm() argument
389 struct sock *sk, struct path *path, in profile_peer_perm() argument
412 else if (path) in profile_peer_perm()
448 struct path *path) in aa_unix_label_sk_perm() argument
456 path)); in aa_unix_label_sk_perm()
602 struct sock *sk, struct path *path, in unix_peer_perm() argument
718 struct path path; in aa_unix_file_perm() local
[all …]
A Dlsm.c218 static int common_perm(const char *op, const struct path *path, u32 mask, in common_perm() argument
242 static int common_perm_cond(const char *op, const struct path *path, u32 mask) in common_perm_cond() argument
271 struct path path = { .mnt = dir->mnt, .dentry = dentry }; in common_perm_dir_dentry() local
346 static int apparmor_path_truncate(const struct path *path) in apparmor_path_truncate() argument
444 static int apparmor_path_chmod(const struct path *path, umode_t mode) in apparmor_path_chmod() argument
449 static int apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in apparmor_path_chown() argument
454 static int apparmor_inode_getattr(const struct path *path) in apparmor_inode_getattr() argument
707 static int apparmor_sb_mount(const char *dev_name, const struct path *path, in apparmor_sb_mount() argument
731 path, flags); in apparmor_sb_mount()
737 path, type, flags, data); in apparmor_sb_mount()
[all …]
A Dfile.c150 const struct path *path, int flags, char *buffer, in path_name() argument
157 error = aa_path_name(path, flags, buffer, name, &info, in path_name()
244 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
254 error = path_name(op, subj_cred, &profile->label, path, in profile_path_perm()
277 const struct path *path, int flags, u32 request, in aa_path_perm() argument
291 profile_path_perm(op, subj_cred, profile, path, buffer, in aa_path_perm()
321 const struct path *link, char *buffer, in profile_path_link()
322 const struct path *target, char *buffer2, in profile_path_link()
427 const struct path *new_dir, struct dentry *new_dentry) in aa_path_link()
429 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; in aa_path_link()
[all …]
/security/apparmor/include/
A Dmount.h29 struct aa_label *label, const struct path *path,
33 struct aa_label *label, const struct path *path,
38 struct aa_label *label, const struct path *path,
42 struct aa_label *label, const struct path *path,
45 struct aa_label *label, const struct path *from_path,
46 const struct path *to_path);
50 const struct path *path, const char *type, unsigned long flags,
57 struct aa_label *label, const struct path *old_path,
58 const struct path *new_path);
A Dfile.h22 struct path;
92 struct aa_label *label, const struct path *path,
96 struct dentry *old_dentry, const struct path *new_dir,
A Dpath.h25 int aa_path_name(const struct path *path, int flags, char *buffer,
/security/landlock/
A Dfs.c324 const struct path *const path, in landlock_append_fs_rule() argument
756 const struct path *const path, in is_access_to_paths_allowed() argument
833 walker_path = *path; in is_access_to_paths_allowed()
933 log_request_parent1->audit.u.path = *path; in is_access_to_paths_allowed()
943 log_request_parent2->audit.u.path = *path; in is_access_to_paths_allowed()
952 static int current_check_access_path(const struct path *const path, in current_check_access_path() argument
1139 struct path mnt_dir; in current_check_refer_path()
1378 size_t handle_layer, const struct path *const path) in log_fs_change_topology_path() argument
1384 .u.path = *path, in log_fs_change_topology_path()
1423 const struct path *const path, const char *const type, in hook_sb_mount() argument
[all …]
A Dsyscalls.c289 static int get_path_from_fd(const s32 fd, struct path *const path) in get_path_from_fd() argument
309 *path = fd_file(f)->f_path; in get_path_from_fd()
310 path_get(path); in get_path_from_fd()
318 struct path path; in add_rule_path_beneath() local
341 err = get_path_from_fd(path_beneath_attr.parent_fd, &path); in add_rule_path_beneath()
346 err = landlock_append_fs_rule(ruleset, &path, in add_rule_path_beneath()
348 path_put(&path); in add_rule_path_beneath()
A Dfs.h128 const struct path *const path,
/security/keys/
A Dbig_key.c25 struct path path; member
124 payload->path = file->f_path; in big_key_preparse()
125 path_get(&payload->path); in big_key_preparse()
157 path_put(&payload->path); in big_key_free_preparse()
172 vfs_truncate(&payload->path, 0); in big_key_revoke()
183 path_put(&payload->path); in big_key_destroy()
184 payload->path.mnt = NULL; in big_key_destroy()
185 payload->path.dentry = NULL; in big_key_destroy()
246 file = dentry_open(&payload->path, O_RDONLY, current_cred()); in big_key_read()
/security/integrity/
A Ddigsig.c194 int __init integrity_load_x509(const unsigned int id, const char *path) in integrity_load_x509() argument
201 rc = kernel_read_file_from_path(path, 0, &data, INT_MAX, NULL, in integrity_load_x509()
204 pr_err("Unable to open file: %s (%d)", path, rc); in integrity_load_x509()
211 pr_info("Loading X.509 certificate: %s\n", path); in integrity_load_x509()
/security/
A Dsecurity.c1567 int security_sb_mount(const char *dev_name, const struct path *path, in security_sb_mount() argument
1597 const struct path *new_path) in security_sb_pivotroot()
1662 const struct path *to_path) in security_move_mount()
1678 int security_path_notify(const struct path *path, u64 mask, in security_path_notify() argument
2041 int security_path_truncate(const struct path *path) in security_path_truncate() argument
2059 int security_path_chmod(const struct path *path, umode_t mode) in security_path_chmod() argument
2076 int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in security_path_chown() argument
2091 int security_path_chroot(const struct path *path) in security_path_chroot() argument
2093 return call_int_hook(path_chroot, path); in security_path_chroot()
2373 int security_inode_getattr(const struct path *path) in security_inode_getattr() argument
[all …]
A Dlsm_audit.c199 audit_log_d_path(ab, " path=", &a->u.path); in audit_log_lsm_data()
201 inode = d_backing_inode(a->u.path.dentry); in audit_log_lsm_data()
225 audit_log_d_path(ab, " path=", &a->u.op->path); in audit_log_lsm_data()
227 inode = a->u.op->path.dentry->d_inode; in audit_log_lsm_data()
323 if (u->path.dentry) { in audit_log_lsm_data()
324 audit_log_d_path(ab, " path=", &u->path); in audit_log_lsm_data()
/security/integrity/ima/
A Dima_fs.c292 static ssize_t ima_read_policy(char *path) in ima_read_policy() argument
297 int rc, pathlen = strlen(path); in ima_read_policy()
302 datap = path; in ima_read_policy()
305 rc = kernel_read_file_from_path(path, 0, &data, INT_MAX, NULL, in ima_read_policy()
308 pr_err("Unable to open file: %s (%d)", path, rc); in ima_read_policy()
A Dima_api.c439 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
446 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
455 take_dentry_name_snapshot(&filename, path->dentry); in ima_d_path()
/security/smack/
A Dsmack.h486 struct path p) in smk_ad_setfield_u_fs_path()
488 a->a.u.path = p; in smk_ad_setfield_u_fs_path()
515 struct path p) in smk_ad_setfield_u_fs_path()
/security/selinux/include/
A Dsecurity.h347 int security_genfs_sid(const char *fstype, const char *path, u16 sclass,
351 const char *path, u16 sclass, u32 *sid);
394 extern struct path selinux_null;

Completed in 58 milliseconds

12