[Freeipa-devel] [PATCHES] 0594-0606 Convert default permissions to managed

Petr Viktorin pviktori at redhat.com
Tue Jun 24 11:26:24 UTC 2014


On 06/24/2014 12:35 PM, Martin Kosek wrote:
> On 06/24/2014 12:27 PM, Petr Viktorin wrote:
>> On 06/23/2014 05:51 PM, Martin Kosek wrote:
>>> On 06/23/2014 02:59 PM, Petr Viktorin wrote:
>>>> On 06/23/2014 10:07 AM, Martin Kosek wrote:
>>>>> On 06/20/2014 11:17 PM, Martin Kosek wrote:
>>>>>> On 06/20/2014 05:06 PM, Petr Viktorin wrote:
>>>>>>> All these should be independent, except for conflicts in ACI.txt that are
>>>>>>> easily solved by running makeaci.
>>>>>>
>>>>>> Umh, now the fun begins as I see :) There will probably need to be some
>>>>>> rebase,
>>>>>> it clashed with some other ACI patches in my tree (namely Hosts which I
>>>>>> acked).
>>>>
>>>> Rebased on top of my patch 0607, please apply that first.
>>>>
>>>> Added a new patch, 0608, which adds missing write permissions.
>>>>
>>>>
>>>>>> 594: we miss permissions for Automount Locations. Permissions for keys&maps
>>>>>> look ok.
>>>>
>>>> Added in 0608.
>>>>
>>>>>>
>>>>>> 595: "System: Modify Group Membership" is probably waiting for the group
>>>>>> objectclass fix - the filter is different. Otherwise it looks ok.
>>>>
>>>> Right; rebased.
>>>>
>>>>>> 596-598: HBAC is ok
>>>>>>
>>>>>> 599: hostgroup is OK
>>>>>>
>>>>>> 600: there must have been some DS problem on my side as my regular user could
>>>>>> not see any netgroup
>>>>
>>>> The problem is a bit closer to home this time.
>>>> Fixed in patch 0607.
>>>>
>>>>>> 601: privileges - we miss CRUD ACIs
>>>>
>>>> Added in 0608.
>>>>
>>>> We also miss CRUD permissions on permissions, but since currently these need
>>>> pretty much unlimited access to ACIs, it's better to keep them admin-only.
>>>>
>>>>>> 602: roles were ok
>>>>>>
>>>>>> 603: ok
>>>>>>
>>>>>> I got this far today, the rest will need to wait for the next week.
>>>>>
>>>>> 604: ok, I was able to create a service, get a keytab
>>>>>
>>>>> 605: Should we case the permissions as "Sudo Command instead of "Sudo
>>>>> command"?
>>>>
>>>> Yes, fixed
>>>>
>>>>> 606: we also miss Modify Sudo Command permission so that people can modify
>>>>> description. Otherwise ok.
>>>>
>>>> Added in 0608.
>>>>
>>>>
>>>
>>> 1) # ipa-server-install:
>>> ...
>>> Applying LDAP updates
>>> ipa.ipaserver.install.ldapupdate.LDAPUpdate: ERROR    Add failure missing
>>> required attribute "objectclass"
>>> ...
>>>
>>> There is a problem in this pending update:
>>>
>>> dn: cn=Modify Group membership,cn=permissions,cn=pbac,$SUFFIX
>>> add:member: 'cn=Modify Group membership,cn=privileges,cn=pbac,$SUFFIX'
>>>
>>> You apparently also need to make this permission also a member of "Modify Group
>>> membership" privilege.
>>
>> Fixed, thank you.
>>
>>> 2) We may not need "System: Modify Automount Locations" as there is just the CN
>>> and we do not support renames in automountlocation API. I am not insisting.
>>
>> Removed.
>>
>>> When these 2 issues are resolved, we can push.
>>
>> I've also added a patch that fixes a permission-find test which assumed there
>> are many old permissions.
>
> Are you sure you tested the patches?

Yes.
Not enough, I'm sure, but I did test them...

> 1) This change in 595 looks suspicious:
>
>   dn: $SUFFIX
> -# Don't allow the default 'manage group membership' to be able to manage the
> -# admins group
> -replace:aci:'(targetattr = "member")(target =
> "ldap:///cn=*,cn=groups,cn=accounts,$SUFFIX")(version 3.0;acl
> "permission:Modify Group membership";allow (write) groupdn = "ldap:///cn=Modify
> Group membership,cn=permissions,cn=pbac,$SUFFIX";)::(targetfilter =
> "(!(cn=admins))")(targetattr = "member")(target =
> "ldap:///cn=*,cn=groups,cn=accounts,$SUFFIX")(version 3.0;acl
> "permission:Modify Group membership";allow (write) groupdn = "ldap:///cn=Modify
> Group membership,cn=permissions,cn=pbac,$SUFFIX";)'
>
> It lefts the update file with
> dn: $SUFFIX
> dn: cn=ipa,cn=etc,$SUFFIX
> add:aci:'(target = "ldap:///cn=*,cn=ca_renewal,cn=ipa,cn=etc,$SUFFIX")(version
> 3.0; acl "Add CA Certific
> ...

Right. (It's removed in one of the later patches, so I didn't catch it.)

> 2) About patch 609.3 - this test still looks very fragile. It would break just
> with adding one more permission to SUFFIX.

It follows the general style of declarative tests, which depend on a 
freshly installed system.
I think it's a good test to have around, at least until there's a better 
suite for permission-find on legacy permissions.

>
> Martin
>


-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0594.4-Convert-Automount-default-permissions-to-managed.patch
Type: text/x-patch
Size: 16366 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0595.4-Convert-Group-default-permissions-to-managed.patch
Type: text/x-patch
Size: 12834 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0596.4-Convert-HBAC-Rule-default-permissions-to-managed.patch
Type: text/x-patch
Size: 9552 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0597.4-Convert-HBAC-Service-default-permissions-to-managed.patch
Type: text/x-patch
Size: 6264 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0598.4-Convert-HBAC-Service-Group-default-permissions-to-ma.patch
Type: text/x-patch
Size: 6703 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0599.4-Convert-Hostgroup-default-permissions-to-managed.patch
Type: text/x-patch
Size: 8847 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0600.4-Convert-Netgroup-default-permissions-to-managed.patch
Type: text/x-patch
Size: 9239 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0601.4-Convert-the-Modify-privilege-membership-permission-t.patch
Type: text/x-patch
Size: 4658 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0602.4-Convert-Role-default-permissions-to-managed.patch
Type: text/x-patch
Size: 8689 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0603.4-Convert-SELinux-User-Map-default-permissions-to-mana.patch
Type: text/x-patch
Size: 8114 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0604.4-Convert-Service-default-permissions-to-managed.patch
Type: text/x-patch
Size: 8890 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0605.4-Convert-Sudo-Command-default-permissions-to-managed.patch
Type: text/x-patch
Size: 8615 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0606.4-Convert-Sudo-Command-Group-default-permissions-to-ma.patch
Type: text/x-patch
Size: 6719 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0607.4-Add-several-CRUD-default-permissions.patch
Type: text/x-patch
Size: 9937 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0608.4-test_permission_plugin-Fix-permission_find-test-for-.patch
Type: text/x-patch
Size: 1227 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/c782c562/attachment-0014.bin>


More information about the Freeipa-devel mailing list