commit | 0c4d0788abf2364d0f05cac675014849ee66e423 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Mon Jul 18 12:12:34 2011 -0400 |
committer | Eric Paris <eparis@redhat.com> | Mon Aug 15 11:25:23 2011 -0400 |
tree | 31523b404d4a231557f51987b60599492d6a7000 | |
parent | 123559545f6244cde45f370dba0902869c1af49b [diff] |
policycoreutils: semanage: use define/raise instead of lots of conditionals Right now the validation code has lots of conditionals which check if we are trying to add and delete or add and modify or something like that. Instead make a single function which just sets if this operation is trying to do an action and if it gets called twice will realize this is invalid and will raise and exception. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>