All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
	Ivan Gyurdiev <ivg2@cornell.edu>,
	SELinux-dev@tresys.com, selinux@tycho.nsa.gov
Subject: Re: Policy mods in last nights refpolicy
Date: Tue, 15 Nov 2005 19:55:48 -0500	[thread overview]
Message-ID: <437A8394.9030507@redhat.com> (raw)
In-Reply-To: <1132069967.24234.159.camel@sgc>

Christopher J. PeBenito wrote:
> On Tue, 2005-11-15 at 09:25 -0500, Daniel J Walsh wrote:
>   
>> diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/files.fc serefpolicy-2.0.1/policy/modules/system/files.fc
>> --- nsaserefpolicy/policy/modules/system/files.fc	2005-11-14 18:24:06.000000000 -0500
>> +++ serefpolicy-2.0.1/policy/modules/system/files.fc	2005-11-15 09:19:21.000000000 -0500
>> @@ -214,3 +214,4 @@
>>  /var/tmp/lost\+found	-d	gen_context(system_u:object_r:lost_found_t,s0)
>>  /var/tmp/lost\+found/.*		<<none>>
>>  /var/tmp/vi\.recover	-d	gen_context(system_u:object_r:tmp_t,s0)
>> +/var/lib/abl(/.*)?		gen_context(system_u:object_r:var_auth_t,s0)
>> diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/files.te serefpolicy-2.0.1/policy/modules/system/files.te
>> --- nsaserefpolicy/policy/modules/system/files.te	2005-11-14 18:24:06.000000000 -0500
>> +++ serefpolicy-2.0.1/policy/modules/system/files.te	2005-11-15 09:19:21.000000000 -0500
>> @@ -167,3 +167,12 @@
>>  #
>>  type var_spool_t;
>>  files_tmp_file(var_spool_t)
>> +
>> +#
>> +# var_auth_t is the type of /var/lib/auth, usually
>> +# used for auth data in pam_able
>> +#
>> +type var_auth_t, file_type;
>> +fs_associate(var_auth_t)
>> +fs_associate_noxattr(var_auth_t)
>>     
>
> A couple notes.  It seems more logical for var_auth_t to be in authlogin
> along with the rest of the pam types.  Also, if its not moved, then
> encapsulation is broken since an interface in authlogin refers to types
> not in that module.
>
>   
Ok fine
> I'll move var_auth_t to authlogin, but I'm not clear on the rules you
> added to auth_use_nsswitch():
>
>   
>> --- nsaserefpolicy/policy/modules/system/authlogin.if	2005-11-14 18:24:06.000000000 -0500
>> +++ serefpolicy-2.0.1/policy/modules/system/authlogin.if	2005-11-15 09:19:21.000000000 -0500
>> @@ -931,6 +931,9 @@
>>  	optional_policy(`samba.te',`
>>  		samba_connect_winbind($1)
>>  	')
>> +	allow $1 var_auth_t:dir r_dir_perms;
>> +	allow $1 var_auth_t:file create_file_perms;
>> +
>>  ')
>>  
>>  ########################################
>>     
>
> Is this really supposed to be create_file_perms?  It seems like it
> should just be r_file_perms since the dir access is r_dir_perms.  The
> interface also needs a gen_require() since it not explicitly refers to
> types.
>   
No apps need to be able to create and delete files in this directory.  
This pam applet keeps track
of failed logins or something like that.
> Also, now that people are going to be using refpolicy, we're going to
> have to start bumping the module versions in the policy_module()
> statements when changes are made, so that modules can be upgraded
> correctly.  Currently the modules are set to 1.0.  After a little
> thought, it seems like it would be better if we go to x.y.z for
> versioning: bump z for each changed module when committing to
> sourceforge; bump y for each changed module when releasing; bump x for
> major design changes to the module.  Does this seem like a reasonable
> versioning scheme?
>
>   
Yes.  Why not start out at 2.0.1 though since this is a major step 
forward in policy.

-- 



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2005-11-16  0:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 21:55 [ SEMANAGE ] Stub pserver backend Ivan Gyurdiev
2005-11-15 11:29 ` Stephen Smalley
2005-11-15 11:58   ` Stephen Smalley
2005-11-15 13:38     ` Daniel J Walsh
2005-11-15 14:12       ` Stephen Smalley
2005-11-15 14:25         ` Policy mods in last nights refpolicy Daniel J Walsh
2005-11-15 15:52           ` Christopher J. PeBenito
2005-11-16  0:55             ` Daniel J Walsh [this message]
2005-11-16 14:38               ` Christopher J. PeBenito
2005-11-16 13:48             ` Stephen Smalley
2005-11-16 14:18               ` Stephen Smalley
2005-11-16 14:46                 ` Joshua Brindle
2005-11-15 14:38         ` [ SEMANAGE ] Stub pserver backend Daniel J Walsh
2005-11-15 16:02           ` Chad Sellers
2005-11-15 16:05       ` Ivan Gyurdiev
2005-11-15 15:59         ` Joshua Brindle
2005-11-15 16:25           ` Ivan Gyurdiev
2005-11-15 16:15             ` Joshua Brindle
2005-11-15 16:42               ` Ivan Gyurdiev
2005-11-15 16:05         ` Stephen Smalley
2005-11-15 13:47     ` Stephen Smalley
2005-11-15 15:54     ` Ivan Gyurdiev
2005-11-15 15:55       ` Joshua Brindle
2005-11-15 16:30         ` Ivan Gyurdiev
2005-11-16  1:01         ` Daniel J Walsh
2005-11-16  0:58       ` Daniel J Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=437A8394.9030507@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=SELinux-dev@tresys.com \
    --cc=cpebenito@tresys.com \
    --cc=ivg2@cornell.edu \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.