Searched defs:path (Results 1 - 17 of 17) sorted by relevance

/security/tomoyo/
H A Dload_policy.c38 struct path path; local
41 if (kern_path(tomoyo_loader, LOOKUP_FOLLOW, &path)) {
46 path_put(&path);
H A Dmount.c38 * tomoyo_check_mount_acl - Check permission for path path path number operation.
66 * @dir: Pointer to "struct path".
76 struct path *dir, const char *type,
80 struct path path; local
132 if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
136 obj.path1 = path;
137 requested_dev_name = tomoyo_realpath_from_path(&path);
187 tomoyo_mount_permission(const char *dev_name, struct path *path, const char *type, unsigned long flags, void *data_page) argument
[all...]
H A Drealpath.c82 * tomoyo_get_absolute_path - Get the path of a dentry but ignores chroot'ed root.
84 * @path: Pointer to "struct path".
92 static char *tomoyo_get_absolute_path(struct path *path, char * const buffer, argument
98 pos = d_absolute_path(path, buffer, buflen - 1);
100 struct inode *inode = path->dentry->d_inode;
111 * tomoyo_get_dentry_path - Get the path of a dentry.
139 * tomoyo_get_local_path - Get the path of a dentry.
213 * @path
219 tomoyo_get_socket_name(struct path *path, char * const buffer, const int buflen) argument
250 tomoyo_realpath_from_path(struct path *path) argument
321 struct path path; local
[all...]
H A Dfile.c144 * @path: Pointer to "struct path".
148 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, struct path *path) argument
150 buf->name = tomoyo_realpath_from_path(path);
159 * tomoyo_audit_path_log - Audit path request log.
168 [r->param.path.operation],
169 r->param.path.filename->name);
173 * tomoyo_audit_path2_log - Audit path/path reques
690 tomoyo_path_number_perm(const u8 type, struct path *path, unsigned long number) argument
735 tomoyo_check_open_permission(struct tomoyo_domain_info *domain, struct path *path, const int flag) argument
785 tomoyo_path_perm(const u8 operation, struct path *path, const char *target) argument
841 tomoyo_mkdev_perm(const u8 operation, struct path *path, const unsigned int mode, unsigned int dev) argument
[all...]
H A Dtomoyo.c149 struct path path = { mnt, dentry }; local
150 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, &path, NULL);
156 * @path: Pointer to "struct path".
160 static int tomoyo_path_truncate(struct path *path) argument
162 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL);
168 * @parent: Pointer to "struct path".
173 static int tomoyo_path_unlink(struct path *paren
175 struct path path = { parent->mnt, dentry }; local
191 struct path path = { parent->mnt, dentry }; local
206 struct path path = { parent->mnt, dentry }; local
222 struct path path = { parent->mnt, dentry }; local
239 struct path path = { parent->mnt, dentry }; local
361 tomoyo_path_chmod(struct path *path, umode_t mode) argument
376 tomoyo_path_chown(struct path *path, kuid_t uid, kgid_t gid) argument
395 tomoyo_path_chroot(struct path *path) argument
411 tomoyo_sb_mount(const char *dev_name, struct path *path, const char *type, unsigned long flags, void *data) argument
427 struct path path = { mnt, mnt->mnt_root }; local
[all...]
H A Dcommon.h436 } path; member in union:tomoyo_request_info::__anon33
586 /* First pathname. Initialized with { NULL, NULL } if no path. */
587 struct path path1;
588 /* Second pathname. Initialized with { NULL, NULL } if no path. */
589 struct path path2;
863 /* A path to program or a domainname. */
948 char *tomoyo_realpath_from_path(struct path *path);
960 struct path *path, cons
[all...]
/security/apparmor/
H A Dpath.c19 #include <linux/path.h>
25 #include "include/path.h"
43 * d_namespace_path - lookup a name associated with a given path
44 * @path: path to lookup (NOT NULL)
45 * @buf: buffer to store path to (NOT NULL)
47 * @name: Returns - pointer for start of path name with in @buf (NOT NULL)
48 * @flags: flags controlling path lookup
50 * Handle path name lookup.
52 * Returns: %0 else error code if path looku
56 d_namespace_path(struct path *path, char *buf, int buflen, char **name, int flags) argument
161 get_name_to_buffer(struct path *path, int flags, char *buffer, int size, char **name, const char **info) argument
207 aa_path_name(struct path *path, int flags, char **buffer, const char **name, const char **info) argument
[all...]
H A Dfile.c19 #include "include/path.h"
268 * aa_path_perm - do permissions check & audit for @path
271 * @path: path to check permissions of (NOT NULL)
272 * @flags: any additional path flags beyond what the profile specifies
278 int aa_path_perm(int op, struct aa_profile *profile, struct path *path, argument
287 error = aa_path_name(path, flags, &buffer, &name, &info);
289 if (error == -ENOENT && is_deleted(path->dentry)) {
349 struct path *new_di
[all...]
H A Dlsm.c35 #include "include/path.h"
156 * @path: path to check permission of (NOT NULL)
162 static int common_perm(int op, struct path *path, u32 mask, argument
170 error = aa_path_perm(op, profile, path, 0, mask, cond);
176 * common_perm_dir_dentry - common permission wrapper when path is dir, dentry
185 static int common_perm_dir_dentry(int op, struct path *dir,
189 struct path path local
206 struct path path = { mnt, dentry }; local
282 apparmor_path_truncate(struct path *path) argument
347 apparmor_path_chmod(struct path *path, umode_t mode) argument
355 apparmor_path_chown(struct path *path, kuid_t uid, kgid_t gid) argument
[all...]
/security/keys/
H A Dbig_key.c50 struct path *path = (struct path *)&prep->payload; local
88 *path = file->f_path;
89 path_get(path);
113 struct path *path = (struct path *)&prep->payload; local
114 path_put(path);
126 struct path *pat local
140 struct path *path = (struct path *)&key->payload.data2; local
178 struct path *path = (struct path *)&key->payload.data2; local
[all...]
H A Drequest_key.c75 static int call_usermodehelper_keys(char *path, char **argv, char **envp, argument
80 info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL,
/security/integrity/ima/
H A Dima_api.c324 const char *ima_d_path(struct path *path, char **pathbuf) argument
330 pathname = d_absolute_path(path, *pathbuf, PATH_MAX);
337 return pathname ?: (const char *)path->dentry->d_name.name;
/security/
H A Dcapability.c97 static int cap_sb_mount(const char *dev_name, struct path *path, argument
108 static int cap_sb_pivotroot(struct path *old_path, struct path *new_path)
269 static int cap_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
275 static int cap_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode)
280 static int cap_path_rmdir(struct path *dir, struct dentry *dentry)
285 static int cap_path_unlink(struct path *dir, struct dentry *dentry)
290 static int cap_path_symlink(struct path *dir, struct dentry *dentry,
296 static int cap_path_link(struct dentry *old_dentry, struct path *new_di
308 cap_path_truncate(struct path *path) argument
313 cap_path_chmod(struct path *path, umode_t mode) argument
318 cap_path_chown(struct path *path, kuid_t uid, kgid_t gid) argument
[all...]
H A Dsecurity.c300 int security_sb_mount(const char *dev_name, struct path *path, argument
303 return security_ops->sb_mount(dev_name, path, type, flags, data);
311 int security_sb_pivotroot(struct path *old_path, struct path *new_path)
407 int security_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
416 int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode)
424 int security_path_rmdir(struct path *dir, struct dentry *dentry)
431 int security_path_unlink(struct path *dir, struct dentry *dentry)
439 int security_path_symlink(struct path *di
475 security_path_truncate(struct path *path) argument
482 security_path_chmod(struct path *path, umode_t mode) argument
489 security_path_chown(struct path *path, kuid_t uid, kgid_t gid) argument
496 security_path_chroot(struct path *path) argument
[all...]
/security/selinux/ss/
H A Dservices.c2444 * @path: path from root of mount
2446 * @sid: SID for path
2455 char *path,
2465 while (path[0] == '/' && path[1] == '/')
2466 path++;
2484 (strncmp(c->u.name, path, len) == 0))
2507 * @path: path fro
2454 __security_genfs_sid(const char *fstype, char *path, u16 orig_sclass, u32 *sid) argument
2514 security_genfs_sid(const char *fstype, char *path, u16 orig_sclass, u32 *sid) argument
[all...]
/security/smack/
H A Dsmack_lsm.c1031 struct path path; local
1034 path.dentry = dentry;
1035 path.mnt = mnt;
1038 smk_ad_setfield_u_fs_path(&ad, path);
/security/selinux/
H A Dhooks.c266 * The inode may still be referenced in a path walk and
1242 char *buffer, *path; local
1248 path = dentry_path_raw(dentry, buffer, PAGE_SIZE);
1249 if (IS_ERR(path))
1250 rc = PTR_ERR(path);
1256 while (path[1] >= '0' && path[1] <= '9') {
1257 path[1] = '/';
1258 path++;
1261 rc = security_genfs_sid(sb->s_type->name, path, tclas
1632 path_has_perm(const struct cred *cred, struct path *path, u32 av) argument
2686 selinux_mount(const char *dev_name, struct path *path, const char *type, unsigned long flags, void *data) argument
2959 struct path path; local
[all...]

Completed in 150 milliseconds