[apparmor] Apparmor parser error ... syntax error, unexpected TOK_EQUALS, expecting TOK_MODE

Seth Arnold seth.arnold at canonical.com
Mon Sep 21 21:03:18 UTC 2015


On Mon, Sep 21, 2015 at 05:33:31PM +0300, Robert Munteanu wrote:
> # aa-enforce usr.sbin.httpd2-prefork
> Setting /etc/apparmor.d/usr.sbin.httpd2-prefork to enforce mode.
> Traceback (most recent call last):
>  File "/usr/sbin/aa-enforce", line 30, in <module>
>    tool.cmd_enforce()
>  File "/usr/lib/python3.4/site-packages/apparmor/tools.py", line 166,
> in cmd_enforce
>    raise apparmor.AppArmorException(cmd_info[1])
> apparmor.common.AppArmorException: 'AppArmor parser error for
> /etc/apparmor.d/usr.sbin.httpd2-prefork in
> /etc/apparmor.d/tunables/home at line 16: syntax error, unexpected
> TOK_EQUALS, expecting TOK_MODE\n'
> 
> The tunables/home file is unchanged.

Could you include the entire httpd2 and tunables/home file? Chances are
good the error is in one of those two files.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150921/0867b5c4/attachment.pgp>


More information about the AppArmor mailing list