Created
April 2, 2022 11:40
-
-
Save pandanote-info/1f8c8dc54667a5fcf0c01ec6582cc1d1 to your computer and use it in GitHub Desktop.
MongoDB用のType Enforcementファイルの作成例(sysctl_fs_t用)。
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
module mongodb_sysctl_fs 1.0; | |
require { | |
type mongod_t; | |
type sysctl_fs_t; | |
class dir search; | |
class file { getattr read open }; | |
} | |
#============= mongod_t ============== | |
allow mongod_t sysctl_fs_t:dir search; | |
allow mongod_t sysctl_fs_t:file { getattr read open }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment