Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515202 - x11-misc/read-edid-2.0.0-r1: needs paxmarking -m
Summary: x11-misc/read-edid-2.0.0-r1: needs paxmarking -m
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 14:01 UTC by Alex Efros
Modified: 2021-12-20 18:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2014-06-26 14:01:20 UTC
Please add "paxmark m /usr/sbin/get-edid" into ebuild for hardened.

# get-edid 
get-edid: get-edid version 2.0.0
mmap /dev/zero: Operation not permitted
get-edid: error initialising realmode interface
get-edid: do you have full superuser (root) permissions?

kern.alert: grsec: denied RWX mmap of /dev/zero by /usr/sbin/get-edid[get-edid:15561] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:8060] uid/euid:0/0 gid/egid:0/0
Comment 1 Anthony Basile gentoo-dev 2014-10-17 17:36:56 UTC
This should be assigned to desktop-misc since its their package.

First, can we get the dmesg error that suggests that get-edid needs MPROTECT off?

Second, once we see that it really needs this marking then, desktop-misc can just add `pax-mark m /usr/sbin/get-edid` to src_install(), something like this

src_install() {
    default
    pax-mark m /usr/sbin/get-edid
}
Comment 2 Alex Efros 2014-10-17 19:00:23 UTC
(In reply to Anthony Basile from comment #1)
> First, can we get the dmesg error that suggests that get-edid needs MPROTECT
> off?

home ~ # paxctl-ng -v /usr/sbin/get-edid 
/usr/sbin/get-edid:
	PT_PAX    : -e---
	XATTR_PAX : -e---

home ~ # get-edid 
get-edid: get-edid version 2.0.0
mmap /dev/zero: Operation not permitted
get-edid: error initialising realmode interface
get-edid: do you have full superuser (root) permissions?

2014-10-17_18:58:09.21534 kern.alert: grsec: denied RWX mmap of /dev/zero by /usr/sbin/get-edid[get-edid:30884] uid/euid:0/0 gid/egid:0/0, parent /bin/bash#new[bash:3035] uid/euid:0/0 gid/egid:0/0

home ~ # paxctl-ng -m /usr/sbin/get-edid 
home ~ # get-edid 
get-edid: get-edid version 2.0.0

	Performing real mode VBE call
	Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
	Function supported
	Call successful
...
Comment 3 Marek Szuba (RETIRED) archtester gentoo-dev 2021-12-20 18:21:27 UTC
Likely not needed in I2C mode, and in any case Gentoo has since dropped PaX/Grsecurity support owing to the fact said patches are no longer Open Source.