Lines Matching defs:perm

258 	if (acl->perm & (1 << r->param.path.operation)) {
281 return (acl->perm & (1 << r->param.path_number.operation)) &&
302 return (acl->perm & (1 << r->param.path2.operation)) &&
322 return (acl->perm & (1 << r->param.mkdev.operation)) &&
364 ->perm;
365 u16 perm = READ_ONCE(*a_perm);
366 const u16 b_perm = container_of(b, struct tomoyo_path_acl, head)->perm;
369 perm &= ~b_perm;
371 perm |= b_perm;
372 WRITE_ONCE(*a_perm, perm);
373 return !perm;
379 * @perm: Permission.
386 static int tomoyo_update_path_acl(const u16 perm,
391 .perm = perm
439 head)->perm;
440 u8 perm = READ_ONCE(*a_perm);
442 ->perm;
445 perm &= ~b_perm;
447 perm |= b_perm;
448 WRITE_ONCE(*a_perm, perm);
449 return !perm;
455 * @perm: Permission.
462 static int tomoyo_update_mkdev_acl(const u8 perm,
467 .perm = perm
519 ->perm;
520 u8 perm = READ_ONCE(*a_perm);
521 const u8 b_perm = container_of(b, struct tomoyo_path2_acl, head)->perm;
524 perm &= ~b_perm;
526 perm |= b_perm;
527 WRITE_ONCE(*a_perm, perm);
528 return !perm;
534 * @perm: Permission.
541 static int tomoyo_update_path2_acl(const u8 perm,
546 .perm = perm
657 head)->perm;
658 u8 perm = READ_ONCE(*a_perm);
660 ->perm;
663 perm &= ~b_perm;
665 perm |= b_perm;
666 WRITE_ONCE(*a_perm, perm);
667 return !perm;
673 * @perm: Permission.
678 static int tomoyo_update_path_number_acl(const u8 perm,
683 .perm = perm
1014 u16 perm = 0;
1020 perm |= 1 << type;
1021 if (perm)
1022 return tomoyo_update_path_acl(perm, param);
1026 perm |= 1 << type;
1027 if (perm)
1028 return tomoyo_update_path2_acl(perm, param);
1032 perm |= 1 << type;
1033 if (perm)
1034 return tomoyo_update_path_number_acl(perm, param);
1038 perm |= 1 << type;
1039 if (perm)
1040 return tomoyo_update_mkdev_acl(perm, param);