selinuxutils (semodule)
Subsystems (2)
semodule needs to read semanage.py which is located under debian: /var/lib/python-support/python2.4/semanage.py
Second semodule tries to getattr the filesystem
Attached is a patch which solves this. I added the allow rules without a debian distribution check. Maybe we should allow it only to debian?
modules/system/selinuxutil.te renamed from usr/src/refpolicy-20070629/policy/modules/system/selinuxutil.te +4 -0
@@ -478,6 +478,8 @@ files_read_etc_runtime_files(semanage_t) files_read_usr_files(semanage_t) files_list_pids(semanage_t) +files_read_var_lib_files(semanage_t) +files_read_var_lib_symlinks(semanage_t) mls_file_write_down(semanage_t) mls_rangetrans_target(semanage_t)
@@ -518,6 +520,8 @@ userdom_search_sysadm_home_dirs(semanage_t) +selinux_dontaudit_getattr_fs(semanage_t) + # cjp: need a more general way to handle this: ifdef(`enable_mls',` # read secadm tmp files
Quoted 4 lines · Stefan Schulze Frielinghaus
semodule needs to read
semanage.pywhich is located under debian: /var/lib/python-support/python2.4/semanage.pySecond semodule tries to getattr the filesystem
This is more than likely part of the libselinux constructor function, so we want to allow it.
Quoted 3 lines
Attached is a patch which solves this. I added the allow rules without a debian distribution check. Maybe we should allow it only to debian?
Yes, it should be in a distro_debian, since this is definitely a debian-specific access, since the .py is in a different location.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Christopher J. PeBenito
Quoted 4 lines
Attached is a patch which solves this. I added the allow rules without a debian distribution check. Maybe we should allow it only to debian?
Yes, it should be in a
distro_debian, since this is definitely a debian-specific access, since the .py is in a different location.
OK, attached is the right patch with a distro_debian check.
modules/system/selinuxutil.te renamed from usr/src/refpolicy-20070629/policy/modules/system/selinuxutil.te +7 -0
@@ -479,6 +479,11 @@ files_read_usr_files(semanage_t) files_list_pids(semanage_t) +ifdef(`distro_debian',` + files_read_var_lib_files(semanage_t) + files_read_var_lib_symlinks(semanage_t) +') + mls_file_write_down(semanage_t) mls_rangetrans_target(semanage_t) mls_file_read_up(semanage_t)
@@ -518,6 +523,8 @@ userdom_search_sysadm_home_dirs(semanage_t) +selinux_dontaudit_getattr_fs(semanage_t) + # cjp: need a more general way to handle this: ifdef(`enable_mls',` # read secadm tmp files
Quoted 4 lines · Stefan Schulze Frielinghaus
modules/system/selinuxutil.te 2007-08-22 18:37:38.000000000 +0200 renamed from usr/src/refpolicy-20070629/policy/modules/system/selinuxutil.te 2007-06-29 16:48:13.000000000 +0200 +0
-0@@ -479,6 +479,11 @@ files_read_usr_files(semanage_t)
modules/system/selinuxutil.te 2007-08-22 18:37:38.000000000 +0200 line 489
Quoted 10 lines
modules/system/selinuxutil.te 2007-08-22 18:37:38.000000000 +0200 renamed from usr/src/refpolicy-20070629/policy/modules/system/selinuxutil.te 2007-06-29 16:48:13.000000000 +0200 +5
-0files_list_pids(semanage_t) +ifdef(`distro_debian',` + files_read_var_lib_files(semanage_t) + files_read_var_lib_symlinks(semanage_t) +') + mls_file_write_down(semanage_t) mls_rangetrans_target(semanage_t) mls_file_read_up(semanage_t)
Merged, but moved down several lines.
modules/system/selinuxutil.te 2007-08-22 18:37:38.000000000 +0200 line 530
Quoted 9 lines
modules/system/selinuxutil.te 2007-08-22 18:37:38.000000000 +0200 renamed from usr/src/refpolicy-20070629/policy/modules/system/selinuxutil.te 2007-06-29 16:48:13.000000000 +0200 +2
-0@@ -518,6 +523,8 @@ userdom_search_sysadm_home_dirs(semanage_t) +selinux_dontaudit_getattr_fs(semanage_t) + # cjp: need a more general way to handle this: ifdef(`enable_mls',` # read secadm tmp files
Changed this to the allow version, since this is due to the libselinux constructor.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.