Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655554

Summary: sys-libs/libsemanage: unable to apply fcontext
Product: Gentoo Linux Reporter: Aaron Bauman (RETIRED) <bman>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aaron Bauman (RETIRED) gentoo-dev 2018-05-12 02:59:04 UTC
# semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/cloud.flappyports.com/htdocs/nextcloud/.user.ini" 

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/semanage", line 1032, in <module>
    do_parser()
  File "/usr/lib/python-exec/python3.5/semanage", line 1011, in do_parser
    args.func(args)
  File "/usr/lib/python-exec/python3.5/semanage", line 382, in handleFcontext
    OBJECT.add(args.file_spec, args.type, args.ftype, args.range, args.seuser)
  File "/usr/lib64/python3.5/site-packages/seobject.py", line 2427, in add
    self.__add(target, type, ftype, serange, seuser)
  File "/usr/lib64/python3.5/site-packages/seobject.py", line 2423, in __add
    self.mylog.log_change("resrc=fcontext op=add %s ftype=%s tcontext=%s:%s:%s:%s" % (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype], seuser, "object_r", type, serange))
NameError: name 'audit' is not defined