Re: RPM to include SELinux information?

2011-11-07 Thread Dmitry Makovey
On Monday, November 07, 2011, li...@alderfamily.org wrote: > I know this doesn't answer your question regarding spec file contents; and > I see your issue. But you might want to check out the "semanage" command. > "chcon" isn't going to persist if selinux does a relabel (which happens > regularly

RE: RPM to include SELinux information?

2011-11-07 Thread lists
age- From: redhat-sysadmin-list-boun...@redhat.com [mailto:redhat-sysadmin-list-boun...@redhat.com] On Behalf Of Dmitry Makovey Sent: Monday, November 07, 2011 15:59 To: redhat-sysadmin-list@redhat.com Subject: RPM to include SELinux information? Hi, I'm trying to build RPM that deploys applicat

RPM to include SELinux information?

2011-11-07 Thread Dmitry Makovey
Hi, I'm trying to build RPM that deploys application into SELinux environment, for it to work I need to label $application_dir with httpd_sys_content_t so that httpd can read it. What is the best approach to this? Adding %postinst chcon -t httpd_sys_content_t $application_dir seems kind of h