Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655554 - sys-libs/libsemanage: unable to apply fcontext
Summary: sys-libs/libsemanage: unable to apply fcontext
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-12 02:59 UTC by Aaron Bauman (RETIRED)
Modified: 2018-05-12 02:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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