Searched defs:PERMS (Results 1 - 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/syscalls/chmod/
H A Dchmod03.c85 #define PERMS 01777 /* macro
113 TEST(chmod(TESTFILE, PERMS));
117 TESTFILE, PERMS);
127 if ((file_mode & PERMS) != PERMS) {
133 TESTFILE, PERMS);
H A Dchmod04.c85 #define PERMS 01777 /* macro
117 TEST(chmod(TESTDIR, PERMS));
121 TESTDIR, PERMS);
137 if ((dir_mode & PERMS) == PERMS) {
140 TESTDIR, PERMS);
144 TESTDIR, dir_mode, PERMS);
H A Dchmod05.c105 #define PERMS (mode_t)(MODE_RWX | DIR_MODE) macro
128 TEST(chmod(TESTDIR, PERMS));
132 TESTDIR, PERMS);
147 printf("PERMS = 0%03o\n", PERMS);
150 if ((PERMS & ~S_ISGID) != dir_mode)
153 PERMS & ~S_ISGID);
157 TESTDIR, PERMS);
H A Dchmod07.c92 #define PERMS 01777 /* macro
121 TEST(chmod(TESTFILE, PERMS));
125 TESTFILE, PERMS);
137 if ((stat_buf.st_mode & PERMS) == PERMS)
140 TESTFILE, PERMS);
144 stat_buf.st_mode, PERMS);
/external/ltp/testcases/kernel/syscalls/fchmod/
H A Dfchmod03.c85 #define PERMS 01777 macro
112 TEST(fchmod(fd, PERMS));
128 if ((file_mode & PERMS) != PERMS)
133 "%#o) successful", fd, PERMS);
H A Dfchmod04.c85 #define PERMS 01777 /* macro
119 TEST(fchmod(fd, PERMS));
130 if ((dir_mode & PERMS) == PERMS)
132 "%#o) successful", fd, PERMS);
136 TESTDIR, dir_mode, PERMS);
H A Dfchmod02.c92 #define PERMS 01777 /* macro
122 TEST(fchmod(fd, PERMS));
126 fd, PERMS, TEST_ERRNO, strerror(TEST_ERRNO));
140 if ((stat_buf.st_mode & PERMS) == PERMS) {
142 "%#o) Successful", fd, PERMS);
146 stat_buf.st_mode, PERMS);
H A Dfchmod05.c92 #define PERMS 043777 macro
121 TEST(fchmod(fd, PERMS));
125 fd, PERMS, TEST_ERRNO, strerror(TEST_ERRNO));
138 if ((PERMS & ~S_ISGID) != dir_mode) {
141 TESTDIR, dir_mode, PERMS & ~S_ISGID);
145 PERMS & ~S_ISGID);
/external/ltp/testcases/kernel/syscalls/mkdir/
H A Dmkdir05.c38 #define PERMS 0777 macro
78 TEST(mkdir(tstdir1, PERMS));
82 tstdir1, PERMS);
H A Dmkdir04.c86 #define PERMS 0700 macro
137 if (mkdir(tstdir1, PERMS) == -1) {
140 tstdir1, PERMS);
168 if (mkdir(tstdir2, PERMS) != -1) {
170 "succeeded", tstdir2, PERMS);
H A Dmkdir02.c84 #define PERMS 0777 macro
160 if (mkdir(tstdir1, PERMS) != 0) {
235 if (mkdir(tstdir2, PERMS) != 0) {
/external/ltp/testcases/kernel/syscalls/rmdir/
H A Drmdir01.c70 #define PERMS 0777 macro
106 if (mkdir(tstdir, PERMS) == -1) {
108 tstdir, PERMS);
H A Drmdir03.c83 #define PERMS 0777 macro
135 if (mkdir(tstdir1, PERMS) == -1) {
153 if (mkdir(tstdir2, PERMS) == -1) {
177 tstdir3, PERMS);
182 tstdir4, PERMS);
/external/ltp/testcases/kernel/syscalls/lstat/
H A Dlstat03.c48 #define PERMS 0644 macro
/external/ltp/testcases/kernel/syscalls/rename/
H A Drename09.c87 #define PERMS 0700 macro
137 if (mkdir(fdir, PERMS) == -1) {
139 fdir, PERMS);
169 if (mkdir(mdir, PERMS) == -1) {
171 mdir, PERMS);
H A Drename12.c81 #define PERMS 0777 macro
197 if (mkdir(fdir, PERMS) == -1) {
/external/selinux/python/sepolgen/src/sepolgen/
H A Drefpolicy.py41 PERMS = 3 variable
48 "permission" : PERMS, "role" : ROLE, "destination" : DEST_TYPE }
/external/selinux/python/sepolicy/sepolicy/
H A D__init__.py49 PERMS = 'permlist' variable
328 if PERMS in seinfo:
329 q.perms = seinfo[PERMS]
341 if PERMS in seinfo:
342 q.perms = seinfo[PERMS]
365 allows = search([ALLOW], {SOURCE: src, TARGET: dest, CLASS: tclass, PERMS: perm})
368 allows = search([ALLOW], {SOURCE: src, CLASS: tclass, PERMS: perm})
374 for i in map(lambda y: (y), filter(lambda x: set(perm).issubset(x[PERMS]) and x['boolean'], allows)):
996 if perm not in dict[PERMS]:

Completed in 3355 milliseconds