Bug 1401437

Summary: hugs98 FTBFS epel6/i686 on mock
Product: [Fedora] Fedora EPEL Reporter: Tuomo Soini <tis>
Component: hugs98Assignee: Jens Petersen <petersen>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-04 05:06:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Selinux denials from i686 build none

Description Tuomo Soini 2016-12-05 09:18:31 UTC
Description of problem:

I tried to rebuild hugs98-2006.09-8.el6 on mock on my 7.3 machine with latest mock from epel7.

i686 build failed, build.log has this error:

runhugs: Error occurred
ERROR - mallocBytesRWX: failed to protect 0x0x93e65a8


And selinux protection kicks in:

type=AVC msg=audit(1480885580.928:194825): avc:  denied  { execheap } for  pid=32451 comm="ffihugs" scontext=system_u:system_r:unconfined_service_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=process

Not: this is i686 poblem. x86_64 build fine.

Please disable executable heap on i686 too.

Comment 1 Tuomo Soini 2016-12-05 09:24:22 UTC
Note: I was building for epel6, build system is 7.3 + epel7 mock.

Comment 2 Jens Petersen 2016-12-07 01:57:25 UTC
I see.  Does hugs98-2006.09-19.el7 build better on el6?

Comment 3 Tuomo Soini 2016-12-07 08:09:50 UTC
Exactly same problem.

There are actually several AVCs from build. Last one is comm="runhugs", previous ones are comm="ffihugs"

You won't hit this on epel7 because there is no i686 build.

Comment 4 Jens Petersen 2016-12-08 05:20:12 UTC
Okay thanks for reporting this.

Could you kindly check if this srpm builds okay on i686?

https://petersen.fedorapeople.org/hugs98-2006.09-20.el7.src.rpm

Comment 5 Tuomo Soini 2016-12-11 10:02:33 UTC
Created attachment 1230536 [details]
Selinux denials from i686 build

No change, Audit log shows bad behaviour.

Comment 6 Jens Petersen 2016-12-28 03:09:19 UTC
Thanks for testing: do you have any patch in mind?

Comment 7 Tuomo Soini 2016-12-28 08:24:47 UTC
No. Problem is somewhere deep inside software (broken design).

Real problem is in fedora buildsystem which has selinux permissive allowing you to build the package.

Comment 8 Jens Petersen 2016-12-28 09:29:27 UTC
Right, I see thanks.

Is there a koji bug about that?

Comment 9 Jens Petersen 2016-12-28 09:30:51 UTC
As you may know Hugs is old and no longer maintained so I am not very
optimistic about fixing this, unless there is patch floating around.

Comment 10 Tuomo Soini 2016-12-28 10:27:34 UTC
Why do you build that if it's old and no longer maintained?

There is plenty of reasons to deprecate package.

Comment 11 Jens Petersen 2017-02-07 04:13:30 UTC
I thought it is still useful to have it in EPEL for reference.

Does hugs98 work on RHEL6 i686?