Re: using audit2allow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/06/2010 01:52 AM, Jim wrote:
> Fedora 14 /KDE
>
> This is the real Raw Audit Message.
>
> This location that has a bunch of FAQ's which one is for making
> policies,  http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385
>
> Where is there a very good instructions on creating policies.
>
> # audit2allow -w -a node=(removed) type=AVC
> msg=audit(1288923096.835:99): avc:  denied  { write } for  pid=16148
> comm="kdm" name="root" dev=sda1 ino=798
> scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
> tcontext=system_u:object_r:admin_home_t:s0 tclass=dir
>
> bash: syntax error near unexpected token `('
>
>

This is related to bash; to fix you need quote the parameter value with '
ie:

# audit2allow -w -a 'node=(removed) type=AVC 
msg=audit(1288923096.835:99): avc:  denied  { write } for  pid=16148 
comm="kdm" name="root" dev=sda1 ino=798 
scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 
tcontext=system_u:object_r:admin_home_t:s0 tclass=dir'

HTH
-- 
Athmane Madjoudj
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux