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

Robert Munteanu robert.munteanu at gmail.com
Tue Sep 22 06:41:51 UTC 2015


Hi Seth,

On Tue, Sep 22, 2015 at 12:03 AM, Seth Arnold <seth.arnold at canonical.com> wrote:
> 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.

Both files are attached.

Thanks,

Robert
-- 
http://robert.muntea.nu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: home
Type: application/octet-stream
Size: 983 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150922/87db3dcb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usr.sbin.httpd2-prefork
Type: application/octet-stream
Size: 2848 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150922/87db3dcb/attachment-0001.obj>


More information about the AppArmor mailing list