Lines Matching full:flags
57 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
61 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
68 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
70 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
75 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
78 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
81 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
168 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags()
169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
170 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags()
171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
173 /* O_PATH only permits certain other flags to be set ... */ in test_openat2_flags()
174 { .name = "compatible flags (O_PATH | O_CLOEXEC)", in test_openat2_flags()
175 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags()
176 { .name = "compatible flags (O_PATH | O_DIRECTORY)", in test_openat2_flags()
177 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags()
178 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", in test_openat2_flags()
179 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags()
181 { .name = "incompatible flags (O_PATH | O_RDWR)", in test_openat2_flags()
182 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
183 { .name = "incompatible flags (O_PATH | O_CREAT)", in test_openat2_flags()
184 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
185 { .name = "incompatible flags (O_PATH | O_EXCL)", in test_openat2_flags()
186 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags()
187 { .name = "incompatible flags (O_PATH | O_NOCTTY)", in test_openat2_flags()
188 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags()
189 { .name = "incompatible flags (O_PATH | O_DIRECT)", in test_openat2_flags()
190 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in test_openat2_flags()
191 { .name = "incompatible flags (O_PATH | O_LARGEFILE)", in test_openat2_flags()
192 .how.flags = O_PATH | O_LARGEFILE, .err = -EINVAL }, in test_openat2_flags()
196 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
198 .how.flags = O_PATH, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
200 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags()
202 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
205 .how.flags = O_CREAT, in test_openat2_flags()
208 .how.flags = O_CREAT, in test_openat2_flags()
211 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
214 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
217 /* ->resolve flags must not conflict. */ in test_openat2_flags()
218 { .name = "incompatible resolve flags (BENEATH | IN_ROOT)", in test_openat2_flags()
219 .how.flags = O_RDONLY, in test_openat2_flags()
223 /* ->resolve must only contain RESOLVE_* flags. */ in test_openat2_flags()
225 .how.flags = O_RDONLY, in test_openat2_flags()
228 .how.flags = O_CREAT, in test_openat2_flags()
231 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
234 .how.flags = O_PATH, in test_openat2_flags()
239 .how.flags = O_RDONLY | (1ULL << 63), in test_openat2_flags()
258 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
291 if (test->how.flags & O_CREAT) in test_openat2_flags()
293 if (!(test->how.flags & O_LARGEFILE)) in test_openat2_flags()
295 failed |= (fdflags != test->how.flags); in test_openat2_flags()
305 test->how.flags); in test_openat2_flags()