Debian has mailman lock files too
policy/modules/services/mailman.fc +5 -0
@@ -31,3 +31,8 @@ ifdef(`distro_redhat', ` /var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ') + +ifdef(`distro_debian', ` +/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) +') +
Signature · 4 lines
A beautiful woman is a blessing from Heaven, but a good cigar is a smoke. Kipling Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Quoted 6 lines · Manoj Srivastava
policy/modules/services/mailman.fc +0
-0
policy/modules/services/mailman.fc ifdef(`distro_redhat', ` · line 38
Quoted 8 lines
policy/modules/services/mailman.fc +5
-0@@ -31,3 +31,8 @@ ifdef(`distro_redhat', ` /var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ') + +ifdef(`distro_debian', ` +/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) +') +
Why not remove the ifdef distro...*
We should not be adding ifdef distro unless the distros conflict on labels. I don't imagine any distro is going to have /var/lock/mailman be anything other them mailman_lock_t.
Several times I have had to move a label out of ifdef...debian because fedora moved to the same labeling.
I think we should add as few ifdef(`disto into fc files as possible.
Quoted 17 lines · Daniel J Walsh
Quoted 6 lines · Manoj Srivastava
policy/modules/services/mailman.fc +0
-0policy/modules/services/mailman.fc ifdef(`distro_redhat', ` · line 38
Quoted 8 lines
policy/modules/services/mailman.fc +5
-0@@ -31,3 +31,8 @@ ifdef(`distro_redhat', ` /var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ') + +ifdef(`distro_debian', ` +/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) +') +Why not remove the ifdef distro...*
Quoted 8 lines
We should not be adding ifdef distro unless the distros conflict on labels. I don't imagine any distro is going to have
/var/lock/mailmanbe anything other themmailman_lock_t.Several times I have had to move a label out of ifdef...debian because fedora moved to the same labeling.
I think we should add as few ifdef(`disto into fc files as possible.
I would tend to agree, though I suspect I'm a little more liberal with their usage than Dan is.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150
Quoted 22 lines · Christopher J. PeBenito
Quoted 21 lines · Daniel J Walsh
Quoted 6 lines · Manoj Srivastava
policy/modules/services/mailman.fc +0
-0policy/modules/services/mailman.fc ifdef(`distro_redhat', ` · line 38
Quoted 8 lines
policy/modules/services/mailman.fc +5
-0@@ -31,3 +31,8 @@ ifdef(`distro_redhat', ` /var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ') + +ifdef(`distro_debian', ` +/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) +') +Why not remove the ifdef distro...*
We should not be adding ifdef distro unless the distros conflict on labels. I don't imagine any distro is going to have
/var/lock/mailmanbe anything other themmailman_lock_t.
Quoted 7 lines
Quoted 4 lines
Several times I have had to move a label out of ifdef...debian because fedora moved to the same labeling.
I think we should add as few ifdef(`disto into fc files as possible.
I would tend to agree, though I suspect I'm a little more liberal with their usage than Dan is.
Fair enough. Do I need to resubmit?
Were the other patches submitted OK?
manoj
Signature · 3 lines
What does it mean if there is no fortune for you? Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Quoted 6 lines · Manoj Srivastava
Quoted 4 lines
Quoted 1 line
I think we should add as few ifdef(`disto into fc files as possible.
I would tend to agree, though I suspect I'm a little more liberal with their usage than Dan is.
? ? ? ? Fair enough. Do I need to resubmit?
I think that whenever an entry only applies to one distribution we should have an ifdef for it.
For example if an application might store some data in /var/cache and then change to /var/lib. This sort of change happens periodically. If the old directory has an ifdef entry for the distribution you use then you can be certain that removing the old entry will not impact anyone else. If however there is no ifdef then you will not know how many other people might be impacted by removing the old fc entry so you will be inclined to leave it there.
To avoid accumulating old fc rules I think we should aim to have as many distro-specific ifdef entries as reasonably possible. If a certain entry is used by multiple distributions then make it unconditional, this will still lead to some accumulation of needless entries, but it will be slower.
Signature · 3 lines
russell at coker.com.au http://etbe.coker.com.au/ My Main Blog http://doc.coker.com.au/ My Documents Blog
Quoted 14 lines · Manoj Srivastava
policy/modules/services/mailman.fc +0
-0@@ -31,3 +31,8 @@ ifdef(`distro_redhat', ` /var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)?
gen_context(system_u:object_r:mailman_data_t,s0)
')policy/modules/services/mailman.fc +3
-0+ +ifdef(`distro_debian', ` +/var/lock/mailman(/.*)?
Quoted 3 lines
gen_context(system_u:object_r:mailman_lock_t,s0)
+')
+
Merged without distro_debian.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150
PATCH 1/1 Remove duplicate distro_redhat context
From: Manoj Srivastava <[email protected]>
A recent update added an generic context for the lock files, so the entry in distro_redhat can be removed.
--- policy/modules/services/mailman.fc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
policy/modules/services/mailman.fc +0 -1
@@ -29,6 +29,5 @@ ifdef(`distro_redhat', ` /usr/lib/mailman/cgi-bin/.* -- gen_context(system_u:object_r:mailman_cgi_exec_t,s0) /usr/lib/mailman/scripts/mailman -- gen_context(system_u:object_r:mailman_mail_exec_t,s0) -/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ')
Signature · 1 line
1.6.3.3
PATCH 1/1 Remove duplicate distro_redhat context
Quoted 4 lines · Manoj Srivastava
From: Manoj Srivastava <[email protected]>
A recent update added an generic context for the lock files, so the entry in
distro_redhatcan be removed.
Merged.
Quoted 16 lines
Signed-off-by Manoj Srivastava <[email protected]>--- policy/modules/services/mailman.fc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)policy/modules/services/mailman.fc +0
-1@@ -29,6 +29,5 @@ ifdef(`distro_redhat', ` /usr/lib/mailman/cgi-bin/.* -- gen_context(system_u:object_r:mailman_cgi_exec_t,s0) /usr/lib/mailman/scripts/mailman -- gen_context(system_u:object_r:mailman_mail_exec_t,s0) -/var/lock/mailman(/.*)? gen_context(system_u:object_r:mailman_lock_t,s0) /var/spool/mailman(/.*)? gen_context(system_u:object_r:mailman_data_t,s0) ')
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150