Lines Matching defs:link
308 * @link: link permission set
311 * test target x permissions are equal OR a subset of link x permissions
317 static inline bool xindex_is_subset(u32 link, u32 target)
319 if (((link & ~AA_X_UNSAFE) != (target & ~AA_X_UNSAFE)) ||
320 ((link & AA_X_UNSAFE) && !(target & AA_X_UNSAFE)))
327 * aa_path_link - Handle hard link permission check
330 * @new_dir: directory the new link will be created in (NOT NULL)
331 * @new_dentry: the link being created (NOT NULL)
333 * Handle the permission test for a link & target pair. Permission
334 * is encoded as a pair where the link permission is determined
336 * is done from the point of the link match (not start of DFA)
337 * making the target permission dependent on the link permission match.
340 * on link are a subset of the permission granted to target.
347 struct path link = { new_dir->mnt, new_dentry };
363 error = aa_get_name(&link, profile->path_flags, &buffer, &lname);
380 /* test to see if target can be paired with link */
384 /* force audit/quiet masks for link are stored in the second entry
385 * in the link pair.
396 /* done if link subset test is not required */
400 /* Do link perm subset test requiring allowed permission on link are a
417 info = "link not subset of target";