Home
last modified time | relevance | path

Searched refs:PERMS (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod07.c35 #define PERMS 01777 /* Permissions with sticky bit set. */ macro
46 TEST(chmod(TESTFILE, PERMS)); in test_chmod()
49 TESTFILE, PERMS); in test_chmod()
57 if ((stat_buf.st_mode & PERMS) == PERMS) { in test_chmod()
59 TESTFILE, PERMS); in test_chmod()
62 TESTFILE, stat_buf.st_mode, PERMS); in test_chmod()
Dchmod04.c86 #define PERMS 01777 /* macro
118 TEST(chmod(TESTDIR, PERMS)); in main()
122 TESTDIR, PERMS); in main()
138 if ((dir_mode & PERMS) == PERMS) { in main()
141 TESTDIR, PERMS); in main()
145 TESTDIR, dir_mode, PERMS); in main()
Dchmod05.c43 #define PERMS (mode_t)(MODE_RWX | DIR_MODE) macro
51 TEST(chmod(TESTDIR, PERMS)); in test_chmod()
53 tst_res(TFAIL, "chmod(%s, %#o) failed", TESTDIR, PERMS); in test_chmod()
59 if ((PERMS & ~S_ISGID) != dir_mode) { in test_chmod()
62 PERMS & ~S_ISGID); in test_chmod()
65 TESTDIR, PERMS); in test_chmod()
Dchmod03.c86 #define PERMS 01777 /* macro
114 TEST(chmod(TESTFILE, PERMS)); in main()
118 TESTFILE, PERMS); in main()
128 if ((file_mode & PERMS) != PERMS) { in main()
134 TESTFILE, PERMS); in main()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod04.c114 TEST(fchmod(fd, PERMS)); in main()
125 if ((dir_mode & PERMS) == PERMS) in main()
127 "%#o) successful", fd, PERMS); in main()
131 TESTDIR, dir_mode, PERMS); in main()
Dfchmod02.c32 TEST(fchmod(fd, PERMS)); in verify_fchmod()
39 if ((file_mode & ~S_IFREG) != PERMS) { in verify_fchmod()
41 TESTFILE, file_mode, PERMS); in verify_fchmod()
44 fd, PERMS); in verify_fchmod()
Dfchmod03.c110 TEST(fchmod(fd, PERMS)); in main()
126 if ((file_mode & PERMS) != PERMS) in main()
131 "%#o) successful", fd, PERMS); in main()
Dfchmod.h12 #define PERMS 01777 macro
/external/ltp/testcases/kernel/syscalls/rename/
Drename09.c87 #define PERMS 0700 macro
137 if (mkdir(fdir, PERMS) == -1) { in main()
139 fdir, PERMS); in main()
169 if (mkdir(mdir, PERMS) == -1) { in main()
171 mdir, PERMS); in main()
Drename12.c81 #define PERMS 0777 macro
197 SAFE_MKDIR(cleanup, fdir, PERMS); in setup()
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir05.c18 #define PERMS 0777 macro
25 TEST(mkdir(TESTDIR, PERMS)); in verify_mkdir()
/external/selinux/python/sepolicy/sepolicy/
Dbooleans.py33 …licy.search([sepolicy.ALLOW], {sepolicy.SOURCE: src, sepolicy.CLASS: tclass, sepolicy.PERMS: perm})
38 …for l in map(lambda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]),…
Dcommunicate.py42 …licy.search([sepolicy.ALLOW], {sepolicy.SOURCE: src, sepolicy.CLASS: tclass, sepolicy.PERMS: perm})
47 …for l in map(lambda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]),…
Dnetwork.py26 …licy.search([sepolicy.ALLOW], {sepolicy.SOURCE: src, sepolicy.CLASS: tclass, sepolicy.PERMS: perm})
29 …bda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]) and (not check_b…
D__init__.py48 PERMS = 'permlist' variable
378 if PERMS in seinfo:
379 q.perms = seinfo[PERMS]
391 if PERMS in seinfo:
392 q.perms = seinfo[PERMS]
428 set(perm).issubset(x[PERMS]) and
1089 if perm not in dict[PERMS]:
Dtransition.py28 …return map(lambda y: y[sepolicy.TARGET], filter(lambda x: "entrypoint" in x[sepolicy.PERMS], trans…
/external/selinux/python/sepolgen/src/sepolgen/
Dpolicygen.py205 …ONTEXT] for x in sesearch([ALLOW], {SCONTEXT: av.src_type, CLASS: av.obj_class, PERMS: av.perms})]:
Drefpolicy.py41 PERMS = 3 variable
48 "permission" : PERMS, "role" : ROLE, "destination" : DEST_TYPE }