Symbol: test_open
tools/testing/selftests/filesystems/fuse/fuse_mnt.c
137
.open = test_open,
tools/testing/selftests/landlock/fs_test.c
1021
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1022
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1023
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1024
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1027
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1028
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1029
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1030
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1033
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1034
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1036
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1037
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1043
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1044
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1045
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1046
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1049
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1050
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1051
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1052
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1055
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1056
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1058
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1059
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1065
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1066
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1067
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1068
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1071
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1072
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1073
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1074
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1077
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1078
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1080
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1081
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1219
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1220
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1221
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1228
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1229
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1230
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1235
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1236
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1237
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1248
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1249
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1250
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1251
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1256
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1257
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1258
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1259
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1264
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1265
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1266
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1267
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1274
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1275
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1276
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1277
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1294
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1295
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1298
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1300
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1303
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1305
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1328
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1329
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1332
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1334
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1337
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1339
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1349
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1350
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1353
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1355
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1358
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1360
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1379
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1380
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1383
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1385
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1388
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1393
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1410
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1412
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1414
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1425
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1427
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1429
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1469
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1470
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1476
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1477
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1501
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1503
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1505
ASSERT_EQ(EACCES, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1506
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1507
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1527
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1529
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1531
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1532
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1533
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1553
ASSERT_EQ(0, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1554
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1560
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1561
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1577
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1578
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1601
ASSERT_EQ(0, test_open("s3d3", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1602
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1731
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1732
ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1734
ASSERT_EQ(ENOENT, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1767
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1773
ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2002
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2003
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2007
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2008
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2012
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2013
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
3391
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3392
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
3430
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3431
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3527
EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3528
EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3536
EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3537
EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3545
EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3546
EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3603
EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3604
EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3608
EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3609
EXPECT_EQ(EACCES, test_open(file_rw, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3617
EXPECT_EQ(0, test_open(file_rt, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3618
EXPECT_EQ(EACCES, test_open(file_rt, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3622
EXPECT_EQ(EACCES, test_open(file_t, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3623
EXPECT_EQ(EACCES, test_open(file_t, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3627
EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3628
EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3635
EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_RDONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
3636
EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_WRONLY | O_TRUNC));
tools/testing/selftests/landlock/fs_test.c
455
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
456
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
457
ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
458
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
459
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
460
ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
461
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
462
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
464
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
465
ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
466
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
467
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
468
ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
469
ASSERT_EQ(0, test_open(file1_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
471
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
472
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
473
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4860
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4861
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4862
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4863
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4864
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4865
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4867
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4868
ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4869
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4870
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4871
ASSERT_EQ(ENOENT, test_open(dir_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4872
ASSERT_EQ(ENOENT, test_open(file1_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4874
ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4875
ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4877
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4934
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4935
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4936
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4938
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4939
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4940
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4943
ASSERT_EQ(0, test_open(file1_s2d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4944
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4946
ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4947
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4953
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4954
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4955
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4957
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4958
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4959
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4962
ASSERT_EQ(EACCES, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4963
ASSERT_EQ(EACCES, test_open(file1_s2d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4964
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4966
ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4967
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4968
ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4974
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4975
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4976
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4978
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4979
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4980
ASSERT_EQ(EACCES, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4983
ASSERT_EQ(EACCES, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4984
ASSERT_EQ(EACCES, test_open(file1_s2d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4985
ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4987
ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4988
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4989
ASSERT_EQ(EACCES, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4995
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4996
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4999
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5000
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
5110
EXPECT_EQ(0, test_open(file1_s4d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5122
EXPECT_EQ(EACCES, test_open(file1_s4d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5209
EXPECT_EQ(EACCES, test_open(file1_s4d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5246
EXPECT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5277
EXPECT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5278
EXPECT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5298
EXPECT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5358
EXPECT_EQ(0, test_open(file1_s2d2, O_RDONLY))
tools/testing/selftests/landlock/fs_test.c
5365
EXPECT_EQ(0, test_open(file1_s4d1, O_RDONLY))
tools/testing/selftests/landlock/fs_test.c
5378
EXPECT_EQ(0, test_open(file2_s4d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
5388
EXPECT_EQ(0, test_open(file1_s4d1, O_RDONLY))
tools/testing/selftests/landlock/fs_test.c
5407
EXPECT_EQ(0, test_open(file1_s4d2, O_RDONLY))
tools/testing/selftests/landlock/fs_test.c
6659
ASSERT_EQ(0, test_open(lower_fl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6660
ASSERT_EQ(0, test_open(lower_dl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6661
ASSERT_EQ(0, test_open(lower_dl1_fl2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6662
ASSERT_EQ(0, test_open(lower_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6663
ASSERT_EQ(0, test_open(lower_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6664
ASSERT_EQ(0, test_open(lower_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6665
ASSERT_EQ(0, test_open(lower_do1_fl3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6667
ASSERT_EQ(0, test_open(upper_fu1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6668
ASSERT_EQ(0, test_open(upper_du1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6669
ASSERT_EQ(0, test_open(upper_du1_fu2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6670
ASSERT_EQ(0, test_open(upper_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6671
ASSERT_EQ(0, test_open(upper_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6672
ASSERT_EQ(0, test_open(upper_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6673
ASSERT_EQ(0, test_open(upper_do1_fu3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6675
ASSERT_EQ(0, test_open(merge_fl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6676
ASSERT_EQ(0, test_open(merge_dl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6677
ASSERT_EQ(0, test_open(merge_dl1_fl2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6678
ASSERT_EQ(0, test_open(merge_fu1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6679
ASSERT_EQ(0, test_open(merge_du1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6680
ASSERT_EQ(0, test_open(merge_du1_fu2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6681
ASSERT_EQ(0, test_open(merge_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6682
ASSERT_EQ(0, test_open(merge_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6683
ASSERT_EQ(0, test_open(merge_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6684
ASSERT_EQ(0, test_open(merge_do1_fl3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6685
ASSERT_EQ(0, test_open(merge_do1_fu3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6829
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6830
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6834
test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6837
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6838
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6842
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6843
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6847
test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6850
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6851
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6860
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6863
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6866
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6874
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6877
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6880
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6888
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6892
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6896
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6899
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6902
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6910
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6911
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6915
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6916
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6920
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6924
test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6927
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6935
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6939
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6943
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6947
test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6950
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
7123
EXPECT_EQ(0, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7124
EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7129
EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7130
EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7136
EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7137
EXPECT_EQ(EACCES, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
7210
ASSERT_EQ(EACCES, test_open(TMP_DIR, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
7352
EXPECT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
7367
EXPECT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
7382
EXPECT_EQ(EACCES, test_open(dir_s1d1, O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
813
ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
817
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
818
ASSERT_EQ(EACCES, test_open("/dev", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
819
ASSERT_EQ(0, test_open("/dev/null", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
820
ASSERT_EQ(EACCES, test_open("/dev/full", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
822
ASSERT_EQ(EACCES, test_open("/proc", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
823
ASSERT_EQ(EACCES, test_open("/proc/self", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
824
ASSERT_EQ(EACCES, test_open("/proc/self/ns", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
830
ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
889
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
890
ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
891
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
892
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
893
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
894
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
896
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
897
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
898
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
899
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
902
ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
903
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
905
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
941
ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
942
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
944
ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
945
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
968
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
969
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
970
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
971
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
974
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
975
ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
976
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
977
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
980
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
981
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
982
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
983
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));