diff options
author | John Turner <jturner.usa@gmail.com> | 2025-08-21 23:32:34 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-08-21 23:32:34 -0400 |
commit | d057045b486f160b0acf2997389c5f74bd50eea2 (patch) | |
tree | 3d4225875adf676db44511ee910763c6f450df37 /src/file/homefile | |
parent | 92c4128f985dfc561b0534a93f9260863642806e (diff) | |
download | selinux-policy-d057045b486f160b0acf2997389c5f74bd50eea2.tar.gz |
add filecons for shellrc and shellexec files and dirs
Diffstat (limited to 'src/file/homefile')
-rw-r--r-- | src/file/homefile/meson.build | 2 | ||||
-rw-r--r-- | src/file/homefile/userhomefile/meson.build | 1 | ||||
-rw-r--r-- | src/file/homefile/userhomefile/userhomeshellrcfile.cil | 17 |
3 files changed, 20 insertions, 0 deletions
diff --git a/src/file/homefile/meson.build b/src/file/homefile/meson.build index f319bcc..e1196bd 100644 --- a/src/file/homefile/meson.build +++ b/src/file/homefile/meson.build @@ -1 +1,3 @@ modules += files('syshomefile.cil', 'userhomefile.cil') + +subdir('userhomefile') diff --git a/src/file/homefile/userhomefile/meson.build b/src/file/homefile/userhomefile/meson.build new file mode 100644 index 0000000..a114a1a --- /dev/null +++ b/src/file/homefile/userhomefile/meson.build @@ -0,0 +1 @@ +modules += files('userhomeshellrcfile.cil') diff --git a/src/file/homefile/userhomefile/userhomeshellrcfile.cil b/src/file/homefile/userhomefile/userhomeshellrcfile.cil new file mode 100644 index 0000000..a620ccf --- /dev/null +++ b/src/file/homefile/userhomefile/userhomeshellrcfile.cil @@ -0,0 +1,17 @@ +(block shellrc + (block user + (block home + (blockinherit .file.home.user.template) + (filecon "HOME_DIR/\.bashrc" file file_context) + (filecon "HOME_DIR/\.bashrc" symlink file_context) + (filecon "HOME_DIR/\.bash_profile" file file_context) + (filecon "HOME_DIR/\.bash_profile" symlink file_context) + (filecon "HOME_DIR/\.bash_logout" file file_context) + (filecon "HOME_DIR/\.bash_logout" symlink file_context) + (filecon "HOME_DIR/\.zshrc" file file_context) + (filecon "HOME_DIR/\.zshrc" symlink file_context) + (filecon "HOME_DIR/\.zprofile" file file_context) + (filecon "HOME_DIR/\.zprofile" symlink file_context) + (filecon "HOME_DIR/\.zenv" file file_context) + (filecon "HOME_DIR/\.zenv" symlink file_context)))) + |