Lines Matching refs:open
24 * and then tries to open the file with RDWR permissions.
88 /* Test 1: Check the process with new uid cannot open the file
91 TEST(open(testfile, O_RDWR));
95 printf("open succeeded unexpectedly\n");
100 printf("open failed with EACCESS as expected\n");
102 printf("open returned unexpected errno - %d\n", TEST_ERRNO);
106 /* Test 2: Check a son process cannot open the file
116 /* Test to open the file in son process */
117 TEST(open(testfile, O_RDWR));
121 printf("open succeeded unexpectedly\n");
126 printf("open failed with EACCESS as expected\n");
128 printf("open returned unexpected errno - %d\n",
143 /* Test 3: Fallback to initial uid and check we can again open
152 TEST(open(testfile, O_RDWR));
155 perror("open failed unexpectedly");
158 printf("open call succeeded\n");