FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 05-20-2010, 11:15 AM
Vadym Chepkov
 
Default Make patch SELinux compatible

Hi,

Is there a way to make patch in Redhat SELinux compatible?

# ls -Z php.php
-rw-r--r-- root root user_ubject_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_ubject_r:tmp_t:s0 php.php

Thanks,
Vadym Chepkov


--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
 
Old 05-20-2010, 11:51 AM
Stephen Smalley
 
Default Make patch SELinux compatible

On Thu, 2010-05-20 at 07:15 -0400, Vadym Chepkov wrote:
> Hi,
>
> Is there a way to make patch in Redhat SELinux compatible?
>
> # ls -Z php.php
> -rw-r--r-- root root user_ubject_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_ubject_r:tmp_t:s0 php.php

https://bugzilla.redhat.com/show_bug.cgi?id=229329

But I had thought that this had been fixed in Fedora. Maybe not.
I'd suggest filing a bug against Fedora for it. There is a
patch-selinux.patch in the patch .src.rpm so it seems like they did
support this functionality at one time, but perhaps it has broken again.

Tip: Make sure you stop restorecond before testing, as otherwise it may
interfere with the results.

--
Stephen Smalley
National Security Agency

--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
 
Old 05-20-2010, 11:59 AM
Vadym Chepkov
 
Default Make patch SELinux compatible

On May 20, 2010, at 7:51 AM, Stephen Smalley wrote:

> On Thu, 2010-05-20 at 07:15 -0400, Vadym Chepkov wrote:
>> Hi,
>>
>> Is there a way to make patch in Redhat SELinux compatible?
>>
>> # ls -Z php.php
>> -rw-r--r-- root root user_ubject_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_ubject_r:tmp_t:s0 php.php
>
> https://bugzilla.redhat.com/show_bug.cgi?id=229329
>
> But I had thought that this had been fixed in Fedora. Maybe not.
> I'd suggest filing a bug against Fedora for it. There is a
> patch-selinux.patch in the patch .src.rpm so it seems like they did
> support this functionality at one time, but perhaps it has broken again.
>
> Tip: Make sure you stop restorecond before testing, as otherwise it may
> interfere with the results.

ah, I should have checked bugzilla. The problem is in RHEL5.
Since 2007, it seems. Gosh


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

Thread Tools




All times are GMT. The time now is 12:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org