Skip to contentSkip to conversation

samba

refpolicy Stefan Schulze Frielinghaus 3 participants 4 messages Feb 3, 2008 – Feb 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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;
 
#1 lore raw

-----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.

#2 lore raw
Quoted 13 lines · Daniel J Walsh

-----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

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;
 
#3 lore raw
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_t needs manage_files_pattern on smbd_log_t. Our

samba

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_pattern with manage_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.