Re: rpm %post script fails returning 127

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

 



On 01/18/2014 08:13 AM, Shintaro Fujiwara wrote:
HI, during the process of #rpm -ivh my_program, I had an error saying as follows.

In spec file, I wrote one line which runs a script.

Studying web, I found some guy had a same kind of trouble, and another guy saying that update selinux-policy and it will fix the problem.

So, I updated as follows and still I have an error.

Fortunately or not, when I set enforce 0, it works fine (%post script works).

But, it's embarassing, my program is for SELinux!

What's going on for rpm and please fix this.

Thanks for reading. 

[root@localhost ~]# sestatus   
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[root@localhost ~]# rpm -ivh --force /home/fujiwara/rpmbuild/RPMS/i686/segatex-7.990-1.i686.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:segatex-7.990-1                  ################################# [100%]
warning: %post(segatex-7.990-1.i686) scriptlet failed, exit status 127
[root@localhost ~]# rpm -qa|grep selinux
selinux-policy-devel-3.12.1-116.fc20.noarch
selinux-policy-3.12.1-117.fc20.noarch
mod_selinux-2.4.4-2.fc20.i686
libselinux-python-2.2.1-6.fc20.i686
libselinux-devel-2.2.1-6.fc20.i686
selinux-policy-mls-3.12.1-116.fc20.noarch
selinux-policy-targeted-3.12.1-116.fc20.noarch
libselinux-2.2.1-6.fc20.i686
selinux-policy-doc-3.12.1-116.fc20.noarch
libselinux-utils-2.2.1-6.fc20.i686
[root@localhost ~]#



--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux
There is a bug for this issue.

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

where I apologized for this issue. Unfortunately it went (also thru updates-testing) so quickly and we catched this issue too late.


--
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