-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yashvi Jain <[email protected]>
- Loading branch information
Yashvi Jain
committed
Oct 13, 2023
1 parent
c662b96
commit bb34c37
Showing
14 changed files
with
237 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
components/compliance-service/firejail/secureporofile.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include disable-common.inc # dangerous directories like ~/.ssh and ~/.gnupg | ||
#include disable-devel.inc # development tools such as gcc and gdb | ||
#include disable-exec.inc # non-executable directories such as /var, /tmp, and /home | ||
#include disable-interpreters.inc # perl, python, lua etc. | ||
#include disable-programs.inc # user configuration for programs such as firefox, vlc etc. | ||
#include disable-shell.inc # sh, bash, zsh etc. | ||
#include disable-xdg.inc # standard user directories: Documents, Pictures, Videos, Music | ||
|
||
### Home Directory Whitelisting ### | ||
### If something goes wrong, this section is the first one to comment out. | ||
### Instead, you'll have to relay on the basic blacklisting above. | ||
#private | ||
#whitelist /hab/pkgs/chef/inspec/4.56.22/20220517052126/bin/inspec | ||
#blacklist /hab | ||
|
||
#read-only /hab/pkgs/chef/inspec/4.56.22/20220517052126/bin/inspec | ||
### Filesystem Whitelisting ### | ||
include whitelist-run-common.inc | ||
include whitelist-runuser-common.inc | ||
include whitelist-usr-share-common.inc | ||
include whitelist-var-common.inc | ||
|
||
#apparmor # if you have AppArmor running, try this one! | ||
caps.drop all | ||
ipc-namespace | ||
netfilter | ||
#no3d # disable 3D acceleration | ||
#nodvd # disable DVD and CD devices | ||
#nogroups # disable supplementary user groups | ||
#noinput # disable input devices | ||
nonewprivs | ||
noroot | ||
#notv # disable DVB TV devices | ||
#nou2f # disable U2F devices | ||
#novideo # disable video capture devices | ||
net none | ||
#seccomp !chroot # allowing chroot, just in case this is an Electron app | ||
#shell none | ||
#tracelog # send blacklist violations to syslog | ||
|
||
#disable-mnt # no access to /mnt, /media, /run/mount and /run/media | ||
#private-bin dash,hab,inspec | ||
#private-cache # run with an | ||
read-only /hab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.