[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xacml-users] Implementing UNIX file system acl using xacml
Hi Marco, I suggest using regular expressions w hierarchical profile XACML 2.0. This should be a straight-forward solution that we have experimented a bit with on OpenAz and is described at tutorial level in old XACML example document: http://lists.oasis-open.org/archives/xacml/200406/msg00033.html doc is attached to that email: http://lists.oasis-open.org/archives/xacml/200406/pdf00003.pdf Basic policy looks like: <Policy PolicyId=”PortalPolicy” RuleCombiningAlgId=”&permit-overrides;”> <Target> <Actions> <Action> <ActionMatch MatchId=”&string-is-in;”> <AttributeValue DataType=”&string;”>read</AttributeValue> <ActionAttributeDesignator AttributeId=”&action-id;” DataType=”&string;”/> </ActionMatch> </Action> </Actions> </Target> <Rule RuleId=”Descendants:of:F” Effect=”Permit”> <Condition FunctionId=”∧”> <Apply FunctionId=”&string-is-in;”> <AttributeValue DataType=”&string;”>Alice</AttributeValue> <SubjectAttributeDesignator AttributeId=”&subject-id;” DataType=”&string;”/> </Apply> <Apply FunctionId=”&anyURI-match;”> <AttributeValue DataType=”&string;”>http://www.example.com/F*</AttributeValue> <Apply FunctionId=”&string-one-and-only;”> <ResourceAttributeDesignator AttributeId=”&resource-id;” DataType=”&string;”/> </Apply> </Apply> <Apply FunctionId=”¬”> <Apply FunctionId=”&string-is-in;”> <AttributeValue DataType=”&string;”>I</AttributeValue> <ResourceAttributeDesignator AttributeId=”&resource-id;” DataType=”&string;”/> </Apply> </Apply> </Condition> </Rule> <Rule RuleId=”Children:of:G” Effect=”Permit”> <Condition FunctionId=”∧”> <Apply FunctionId=”&string-is-in;”> <AttributeValue DataType=”&string;”>Bob</AttributeValue> <SubjectAttributeDesignator AttributeId=”&subject-id;” DataType=”&string;”/> </Apply> <Apply FunctionId=”&anyURI-match;”> <AttributeValue DataType=”&string;”>http://www.example.com/F/G/*</AttributeValue> <Apply FunctionId=”&string-one-and-only;”> <ResourceAttributeDesignator AttributeId=”&resource-id;” DataType=”&string;”/> </Apply> </Apply> </Condition> </Rule> <Policy> This note follows policy: "Please note that this method may grant privileges to new directories and files that may be created in theThanks, RIch On 11/14/2011 10:02 AM, Marco Biagi wrote: I think the best solution to the problem is to improve XACML _expression_ language. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]