remove selinux relabel
This commit is contained in:
parent
d41a879ed9
commit
8067baeb27
21 changed files with 3 additions and 42 deletions
src/rougail/template
tests/dictionaries
01base_file/result/tmpfiles.d
01base_file_include/result/tmpfiles.d
01base_file_include_content/result/tmpfiles.d
01base_file_include_name/result/tmpfiles.d
01base_file_patch/result/tmpfiles.d
01base_file_utfchar/result/tmpfiles.d
11disabled_if_in_filelist/result/tmpfiles.d
11disabled_if_in_filelist_same_name/result/tmpfiles.d
20notemplating/result/tmpfiles.d
40ifin_leadershipauto/result/tmpfiles.d
40ifin_leadershipauto_follower/result/tmpfiles.d
45extra_without_family/result/tmpfiles.d
60extra_leadership/result/tmpfiles.d
60extra_leadership_name/result/tmpfiles.d
60extra_leadership_name_item/result/tmpfiles.d
60extra_leadership_valid_enum/result/tmpfiles.d
70container_files/result/tmpfiles.d
70container_files_symlink_multi/result/tmpfiles.d
70container_files_symlink_multi_variable/result/tmpfiles.d
70container_files_symlink_variable/result/tmpfiles.d
|
@ -40,12 +40,12 @@ IPAddressDeny=any
|
|||
|
||||
ROUGAIL_DEST = '/usr/local/lib'
|
||||
ROUGAIL_GLOBAL_SYSTEMD_FILE = '/usr/lib/systemd/system'
|
||||
ROUGAIL_DEST_FILE = '/tmpfiles.d/0rougail.conf'
|
||||
|
||||
|
||||
ROUGAIL_TMPL_TEMPLATE = f"""%def display(%%file, %%filename)
|
||||
%if %%filename.startswith('/etc/') or %%filename.startswith('/var/') or %%filename.startswith('/srv/')
|
||||
C %%filename %%file.mode %%file.owner %%file.group - {ROUGAIL_DEST}%%filename
|
||||
z %%filename - - - - -
|
||||
%end if
|
||||
%end def
|
||||
%for %%service in %%services
|
||||
|
@ -186,13 +186,12 @@ class RougailSystemdTemplate(RougailBaseTemplate):
|
|||
self.ip_per_service = None
|
||||
|
||||
def post_instance(self):
|
||||
destfile = '/tmpfiles.d/0rougail.conf'
|
||||
destfilename = join(self.destinations_dir, destfile[1:])
|
||||
destfilename = join(self.destinations_dir, ROUGAIL_DEST_FILE[1:])
|
||||
makedirs(dirname(destfilename), exist_ok=True)
|
||||
self.log.info(_(f"creole processing: '{destfilename}'"))
|
||||
self.engines['creole'].process(filename=None,
|
||||
source=ROUGAIL_TMPL_TEMPLATE,
|
||||
true_destfilename=destfile,
|
||||
true_destfilename=ROUGAIL_DEST_FILE,
|
||||
destfilename=destfilename,
|
||||
destdir=self.destinations_dir,
|
||||
variable=None,
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
||||
C /etc/dir/incfile 0644 root root - /usr/local/lib/etc/dir/incfile
|
||||
z /etc/dir/incfile - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/systemd-makefs@dev-disk-by\x2dpartlabel 0644 root root - /usr/local/lib/etc/systemd-makefs@dev-disk-by\x2dpartlabel
|
||||
z /etc/systemd-makefs@dev-disk-by\x2dpartlabel - - - - -
|
||||
C /etc/systemd-makefs@dev-disk-by\x2dpartlabel2 0644 root root - /usr/local/lib/etc/systemd-makefs@dev-disk-by\x2dpartlabel2
|
||||
z /etc/systemd-makefs@dev-disk-by\x2dpartlabel2 - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
C /etc/mailname3 0644 root root - /usr/local/lib/etc/mailname3
|
||||
z /etc/mailname3 - - - - -
|
||||
C /etc/mailname4 0644 root root - /usr/local/lib/etc/mailname4
|
||||
z /etc/mailname4 - - - - -
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2
|
||||
z /etc/mailname2 - - - - -
|
||||
C /etc/mailname3 0644 root root - /usr/local/lib/etc/mailname3
|
||||
z /etc/mailname3 - - - - -
|
||||
C /etc/mailname4 0644 root root - /usr/local/lib/etc/mailname4
|
||||
z /etc/mailname4 - - - - -
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname
|
||||
z /etc/mailname - - - - -
|
||||
|
|
Loading…
Reference in a new issue