[PATCH 2/2] semanage: fix modify action in node and interface

Stephen Smalley sds at tycho.nsa.gov
Thu Aug 11 17:33:35 UTC 2016


On 07/25/2016 12:37 PM, Miroslav Vadkerti wrote:
> The modify actions of security context mappings for
> interface and node actully called add action.
> 
> Signed-off-by: Miroslav Vadkerti <mvadkert at redhat.com>

Thanks, applied.

> ---
>  policycoreutils/semanage/semanage | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage
> index 954411d..b199ebe 100644
> --- a/policycoreutils/semanage/semanage
> +++ b/policycoreutils/semanage/semanage
> @@ -524,7 +524,7 @@ def handleInterface(args):
>      if args.action is "add":
>          OBJECT.add(args.interface, args.range, args.type)
>      if args.action is "modify":
> -        OBJECT.add(args.interface, args.range, args.type)
> +        OBJECT.modify(args.interface, args.range, args.type)
>      if args.action is "delete":
>          OBJECT.delete(args.interface)
>      if args.action is "list":
> @@ -607,7 +607,7 @@ def handleNode(args):
>      if args.action is "add":
>          OBJECT.add(args.node, args.netmask, args.proto, args.range, args.type)
>      if args.action is "modify":
> -        OBJECT.add(args.node, args.netmask, args.proto, args.range, args.type)
> +        OBJECT.modify(args.node, args.netmask, args.proto, args.range, args.type)
>      if args.action is "delete":
>          OBJECT.delete(args.node, args.netmask, args.proto)
>      if args.action is "list":
> 




More information about the Linux-audit mailing list