Re: Installing a single file from an RPM into a system running SELinux

2013-05-12 Thread Michael Schwendt
On Sun, 12 May 2013 09:14:22 -0500, inode0 wrote: > > rpm -if /example/list.txt > > > > with "list.txt" containing a list of package file names. > > I think the -f is being ignored in this case. The PACKAGE_FILE can be > a manifest as you describe and the command given above works just the > sa

Re: Installing a single file from an RPM into a system running SELinux

2013-05-12 Thread inode0
On Sun, May 12, 2013 at 8:32 AM, Michael Schwendt wrote: > On Sat, 11 May 2013 15:07:04 -0700, Jonathan Ryshpan wrote: > >> On Sat, 2013-05-11 at 14:16 -0700, Joe Zeff wrote: >> > On 05/11/2013 01:40 PM, Jonathan Ryshpan wrote: >> > > I need to install a single file from an RPM, namely >> > > >> >

Re: Installing a single file from an RPM into a system running SELinux

2013-05-12 Thread Michael Schwendt
On Sat, 11 May 2013 15:07:04 -0700, Jonathan Ryshpan wrote: > On Sat, 2013-05-11 at 14:16 -0700, Joe Zeff wrote: > > On 05/11/2013 01:40 PM, Jonathan Ryshpan wrote: > > > I need to install a single file from an RPM, namely > > > > > > * RPM gnome-keyring-3.6.3-1.fc18.i686 > > > * File: /usr/li

Re: Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Joe Zeff
On 05/11/2013 03:07 PM, Jonathan Ryshpan wrote: If only. The -f option applies only to queries, eg. $ rpm -qf /usr/lib64/pkcs11/gnome-keyring-pkcs11.so gnome-keyring-3.6.3-1.fc18.x86_64 to discover which rpm provides the specified file. From the rpm man page: select options:

Re: Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Jonathan Ryshpan
On Sat, 2013-05-11 at 14:16 -0700, Joe Zeff wrote: > On 05/11/2013 01:40 PM, Jonathan Ryshpan wrote: > > I need to install a single file from an RPM, namely > > > > * RPM gnome-keyring-3.6.3-1.fc18.i686 > > * File: /usr/lib/pkcs11/gnome-keyring-pkcs11.so > > The first thing you need to do is R

Re: Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Joe Zeff
On 05/11/2013 01:40 PM, Jonathan Ryshpan wrote: I need to install a single file from an RPM, namely * RPM gnome-keyring-3.6.3-1.fc18.i686 * File: /usr/lib/pkcs11/gnome-keyring-pkcs11.so The first thing you need to do is RTFM: rpm -i gnome-keyring-3.6.3-1.fc18.i686 -f gnome-keyring-pkcs11.

Re: Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Tim
Allegedly, on or about 11 May 2013, Jonathan Ryshpan sent: > If I simply expand the RPM and copy in the needed file, the selinux > permissions will be wrong. Probably not. The general behaviour is for files to get created with the right contexts when created in, or copied to, their normal filepa

Re: Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Ed Greshko
On 05/12/13 04:40, Jonathan Ryshpan wrote: > I need to install a single file from an RPM, namely > > * RPM gnome-keyring-3.6.3-1.fc18.i686 > * File: /usr/lib/pkcs11/gnome-keyring-pkcs11.so > > into a system running selinux. If I simply expand the RPM and copy in the > needed file, the selinux

Installing a single file from an RPM into a system running SELinux

2013-05-11 Thread Jonathan Ryshpan
I need to install a single file from an RPM, namely * RPM gnome-keyring-3.6.3-1.fc18.i686 * File: /usr/lib/pkcs11/gnome-keyring-pkcs11.so into a system running selinux. If I simply expand the RPM and copy in the needed file, the selinux permissions will be wrong. Is there a utility