Re: Make patch SELinux compatible

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

 



On Thu, May 20, 2010 at 1:15 PM, Vadym Chepkov <vchepkov@xxxxxxxxx> wrote:
> Hi,
>
> Is there a way to make patch in Redhat SELinux compatible?
>
> # ls -Z php.php
> -rw-r--r--  root root user_u:object_r:httpd_sys_content_t:s0 php.php
>
> # patch -p1 < /root/php.patch
> patching file php.php
>
> # ls -Z php.php
> -rw-r--r--  root root user_u:object_r:tmp_t:s0         php.php
Strange. For me  this work as aspected, because patch first unlink php.php and
after read /tmp/pxxxx and write php.php. Are you sure that the file
context for your php.php was persistent (via semanage fscontext ) and
not set via chcon ?

Regards
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux