You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the two new cagefsctl commands to the CLI reference table and
update the CageFS Syslog section with usage instructions for the
cagefs-no-dev-log feature flag.
Copy file name to clipboardExpand all lines: docs/cloudlinuxos/cloudlinux_os_components/README.md
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2919,17 +2919,42 @@ add <span class="notranslate"> `clean_user_php_sessions=false` line to _/etc/sys
2919
2919
#### Syslog
2920
2920
2921
2921
2922
-
By default, <span class="notranslate"> _/dev/log_ </span> should be available inside end user's <span class="notranslate"> CageFS </span> . This is needed so that user's cronjobs and other things that user <span class="notranslate"> _dev/log_ </span> would get recorded in the system log files.
2922
+
By default, <span class="notranslate"> _/dev/log_ </span> should be available inside end user's <span class="notranslate"> CageFS </span> . This is needed so that user's cronjobs and other things that use <span class="notranslate"> _/dev/log_ </span> would get recorded in the system log files.
2923
+
2924
+
##### Disabling /dev/log in CageFS
2925
+
2926
+
To disable <span class="notranslate"> _/dev/log_ </span> inside CageFS (for example, to reduce the attack surface), use the <span class="notranslate"> `cagefs-no-dev-log` </span> feature flag:
2927
+
2928
+
<div class="notranslate">
2929
+
2930
+
```
2931
+
cagefsctl --enable-cagefs-no-dev-log
2932
+
```
2933
+
</div>
2934
+
2935
+
This command removes <span class="notranslate"> _/dev/log_ </span> from the CageFS skeleton, updates the syslog configuration, and remounts all CageFS users. User processes inside CageFS will no longer be able to write to the system log via <span class="notranslate"> _/dev/log_ </span>.
2936
+
2937
+
To restore <span class="notranslate"> _/dev/log_ </span> in CageFS:
2938
+
2939
+
<div class="notranslate">
2940
+
2941
+
```
2942
+
cagefsctl --disable-cagefs-no-dev-log
2943
+
```
2944
+
</div>
2945
+
2946
+
:::tip Note
2947
+
On systems using <span class="notranslate"> rsyslog </span>, the syslog socket is controlled via the file <span class="notranslate"> _/etc/rsyslog.d/schroot.conf_ </span> with the following content:
2923
2948
2924
-
This is controlled using file <span class="notranslate"> _/etc/rsyslog.d/schroot.conf_ </span> with the following content:
To remove presence of <span class="notranslate"> _dev/log_ </span> inside CageFS, remove that file, and restart rsyslog service.
2956
+
The <span class="notranslate"> `--enable-cagefs-no-dev-log` </span> and <span class="notranslate"> `--disable-cagefs-no-dev-log` </span> commands manage this configuration automatically. Manual editing of rsyslog configuration is no longer necessary.
0 commit comments