samba
Subsystems (2)
On Debian machines smbd needs append rights for samba logfiles.
modules/services/samba.te renamed from usr/src/refpolicy-20071214/policy/modules/services/samba.te +1 -0
@@ -223,6 +223,7 @@ create_dirs_pattern(smbd_t,samba_log_t,samba_log_t) create_files_pattern(smbd_t,samba_log_t,samba_log_t) +append_files_pattern(smbd_t,samba_log_t,samba_log_t) allow smbd_t samba_log_t:dir setattr; dontaudit smbd_t samba_log_t:dir remove_name;
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Stefan Schulze Frielinghaus
On Debian machines smbd needs append rights for samba logfiles.
In Fedora smbd_t needs manage_files_pattern on smbd_log_t. Our samba developers informed me that this is ok, since these are not security relevent log files.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkenGyIACgkQrlYvE4MpobMFSgCcCAOhKW0zrOmRyf/6zifGOBj0 IGcAoJ4dsNctCyp4k7LdaLbu468xbiK4
=iw9h
-----END PGP SIGNATURE-----
--
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 13 lines · Daniel J Walsh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Stefan Schulze Frielinghaus
On Debian machines smbd needs append rights for samba logfiles.
In Fedora
smbd_tneedsmanage_files_patternonsmbd_log_t. Our samba developers informed me that this is ok, since these are not security relevent log files.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
Quoted 4 lines
iEYEARECAAYFAkenGyIACgkQrlYvE4MpobMFSgCcCAOhKW0zrOmRyf/6zifGOBj0 IGcAoJ4dsNctCyp4k7LdaLbu468xbiK4
=iw9h
-----END PGP SIGNATURE-----
OK than we can easily substitute create_files_pattern with manage_files_pattern. Attached patch should do that.
modules/services/samba.te renamed from usr/src/refpolicy-20071214/policy/modules/services/samba.te +1 -1
@@ -222,7 +222,7 @@ allow smbd_t samba_etc_t:file { rw_file_perms setattr }; create_dirs_pattern(smbd_t,samba_log_t,samba_log_t) -create_files_pattern(smbd_t,samba_log_t,samba_log_t) +manage_files_pattern(smbd_t,samba_log_t,samba_log_t) allow smbd_t samba_log_t:dir setattr; dontaudit smbd_t samba_log_t:dir remove_name;
Quoted 11 lines · Stefan Schulze Frielinghaus
Quoted 4 lines · Daniel J Walsh
Quoted 2 lines · Stefan Schulze Frielinghaus
On Debian machines smbd needs append rights for samba logfiles.
In Fedora
smbd_tneedsmanage_files_patternonsmbd_log_t. Oursamba
Quoted 2 lines
developers informed me that this is ok, since these are not security relevent log files.
OK than we can easily substitute
create_files_patternwithmanage_files_pattern. Attached patch should do that.
Merged.
Quoted 23 lines
differences
between files
attachment
(samba.te.patch)modules/services/samba.te 2008-02-04 15:59:56.000000000 renamed from usr/src/refpolicy-20071214/policy/modules/services/samba.te 2007-12-14 15:23:18.000000000 +0100 +2
-1+0100@@ -222,7 +222,7 @@ allow smbd_t samba_etc_t:file { rw_file_perms setattr }; create_dirs_pattern(smbd_t,samba_log_t,samba_log_t) -create_files_pattern(smbd_t,samba_log_t,samba_log_t) +manage_files_pattern(smbd_t,samba_log_t,samba_log_t) allow smbd_t samba_log_t:dir setattr; dontaudit smbd_t samba_log_t:dir remove_name;
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.