rpm %post script fails returning 127

Miroslav Grepl mgrepl at redhat.com
Sun Jan 19 19:45:01 UTC 2014


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 at 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 at 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 at 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 at localhost ~]#
>
>
>
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/selinux/attachments/20140119/f2e35e7c/attachment.html>


More information about the selinux mailing list