Bug 684008
| Summary: | pE for /sbin/init has special logic that makes it unboundable | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Eric Paris <eparis> |
| Component: | kernel | Assignee: | Eric Paris <eparis> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Malanik <jmalanik> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.1 | CC: | arozansk, jmalanik, mzywusko |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | kernel-2.6.32-130.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-23 20:43:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Eric Paris
2011-03-10 21:46:46 UTC
upstream didn't believe the logic made any sense either. I posted a patch to remove the logic for 6.1 BUT I included a new command line options caps_bound_init to enable the new change just to be safe.... This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Patch(es) available on kernel-2.6.32-130.el6 I can't verified it. I tried kernel 2.6.32-125 and -130. I did 3 drops(cap_chown, cap_kill, both) for each kernel. In every case I see "fffffffffffffeff" in CapEff. I used dracut 004-50. Any ideas? Did you use the correct command line including caps_bound_init ? IĀ used: dracut -i /etc/caps.conf /etc/cmdline -a caps --add-drivers "`cat lsmod`" -f /boot/init_drop_kill_125.img "2.6.32-125.el6.x86_64" where: cat /etc/caps.conf rd.caps=1 rd.caps.initdrop=cap_kill #cap_chown, or both rd.caps.disablemodules=1 rd.caps.disablekexec=1 rdloaddriver=autofs4,sunrpc,ipv6,dm_mirror,dm_region_hash,dm_log,uinput,power_meter,ses,enclosure,sg,dcdbas,microcode,serio_raw,ghes,hed,k10temp,hwmon,amd64_edac_mod,edac_core,edac_mce_amd,i2c_piix4,i2c_core,ext4,mbcache,jbd2,sr_mod,cdrom,sd_mod,crc_t10dif,ahci,megaraid_sas,dm_mod /etc/cmdline doesn't exist in "lsmod" file I have got list of modules. Last parameter I changed for every kernel(-130,-125) I uised configuration based on https://bugzilla.redhat.com/show_bug.cgi?id=677340#c12 Inside grub add "caps_bound_init" to the kernel line. This patch is only activated when that is added to the cmdline. succesfully verified on -130 kernel for drop kill+chown I can see: CapPrm: ffffffffffffffde CapEff: ffffffffffffffde CapBnd: ffffffffffffffde An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html |