Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created April 2, 2022 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandanote-info/1f8c8dc54667a5fcf0c01ec6582cc1d1 to your computer and use it in GitHub Desktop.
Save pandanote-info/1f8c8dc54667a5fcf0c01ec6582cc1d1 to your computer and use it in GitHub Desktop.
MongoDB用のType Enforcementファイルの作成例(sysctl_fs_t用)。
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