-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving selinux stuff to rs-mysql (#63)
* moving selinux stuff to rs-mysql * adding notes * removing comments * converting to mixlib FC048 * applying to the whole rhel family * updating rakefile and changelog * Update Rakefile * converting system to sh * pinning windows * locking down windows cookbook for chefspec 3.4.0 and updating rakefile to check master * updating changelog
- Loading branch information
Showing
5 changed files
with
130 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module rhel-mysql 1.0; | ||
|
||
require { | ||
type mysqld_safe_t; | ||
type postfix_pickup_t; | ||
type groupadd_t; | ||
type mysqld_t; | ||
type file_t; | ||
type var_lib_t; | ||
class lnk_file { read getattr }; | ||
class dir { create read write open getattr search remove_name add_name rmdir }; | ||
class file { create read write open getattr unlink lock rename }; | ||
class sock_file { create read write open getattr link unlink }; | ||
} | ||
|
||
#============= groupadd_t ============== | ||
|
||
allow groupadd_t var_lib_t:file read; | ||
|
||
#============= mysqld_safe_t ============== | ||
|
||
allow mysqld_safe_t var_lib_t:lnk_file { read getattr }; | ||
|
||
#============= mysqld_t ============== | ||
#!!!! The source type 'mysqld_t' can write to a 'dir' of the following types: | ||
# mysqld_log_t, mysqld_tmp_t, var_log_t, var_lib_t, var_run_t, mysqld_var_run_t, pcscd_var_run_t, mysqld_db_t, tmp_t, cluster_var_lib_t, cluster_var_run_t, root_t, cluster_conf_t, krb5_host_rcache_t, tmp_t | ||
|
||
allow mysqld_t var_lib_t:file { read getattr open }; | ||
allow mysqld_t var_lib_t:lnk_file read; | ||
|
||
allow mysqld_t file_t:dir { create getattr search read remove_name add_name write open rmdir }; | ||
allow mysqld_t file_t:file { create read getattr open write unlink lock rename }; | ||
allow mysqld_t file_t:sock_file { create read write open getattr link unlink}; | ||
|
||
#============= postfix_pickup_t ============== | ||
|
||
allow postfix_pickup_t var_lib_t:file { read open }; |
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