1
- policy_module(container, 2 .196 . 1 )
1
+ policy_module(container, 2 .197 . 0 )
2
2
3
3
gen_require(`
4
4
class passwd rootok;
@@ -39,6 +39,14 @@ gen_tunable(container_manage_cgroup, false)
39
39
# # </desc>
40
40
gen_tunable(container_use_cephfs, false )
41
41
42
+ # # <desc>
43
+ # # <p>
44
+ # # Determine whether container can
45
+ # # use ecrypt file system
46
+ # # </p>
47
+ # # </desc>
48
+ gen_tunable(container_use_ecryptfs, false )
49
+
42
50
attribute container_runtime_domain;
43
51
container_runtime_domain_template(container_runtime)
44
52
typealias container_runtime_t alias docker_t;
@@ -523,10 +531,6 @@ tunable_policy(`virt_use_samba',`
523
531
allow container_domain cifs_t:file execmod;
524
532
')
525
533
526
- gen_require(`
527
- type cephfs_t;
528
- ')
529
-
530
534
tunable_policy(`virt_use_nfs',`
531
535
fs_manage_nfs_dirs(container_domain)
532
536
fs_manage_nfs_files(container_domain)
@@ -538,6 +542,10 @@ tunable_policy(`virt_use_nfs',`
538
542
allow container_domain nfs_t:file execmod;
539
543
')
540
544
545
+ gen_require(`
546
+ type cephfs_t;
547
+ ')
548
+
541
549
tunable_policy(`container_use_cephfs',`
542
550
manage_files_pattern(container_domain, cephfs_t, cephfs_t)
543
551
manage_lnk_files_pattern(container_domain, cephfs_t, cephfs_t)
@@ -546,6 +554,18 @@ tunable_policy(`container_use_cephfs',`
546
554
allow container_domain cephfs_t:file execmod;
547
555
')
548
556
557
+ gen_require(`
558
+ type ecryptfs_t;
559
+ ')
560
+
561
+ tunable_policy(`container_use_ecryptfs',`
562
+ manage_files_pattern(container_domain, ecryptfs_t, ecryptfs_t)
563
+ manage_lnk_files_pattern(container_domain, ecryptfs_t, ecryptfs_t)
564
+ manage_dirs_pattern(container_domain, ecryptfs_t, ecryptfs_t)
565
+ exec_files_pattern(container_domain, ecryptfs_t, ecryptfs_t)
566
+ allow container_domain ecryptfs_t:file execmod;
567
+ ')
568
+
549
569
fs_manage_fusefs_named_sockets(container_runtime_domain)
550
570
fs_manage_fusefs_dirs(container_runtime_domain)
551
571
fs_manage_fusefs_files(container_runtime_domain)
0 commit comments