diff options
author | Kohei Kaigai <Kohei.Kaigai@emea.nec.com> | 2011-05-26 14:59:25 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2011-05-26 17:20:53 -0400 |
commit | 0f7e4c33eb2c40b1e9cc24d2eab6de5921bc619c (patch) | |
tree | 793c5f834751215dfc93b05540fa9ed46c64ee07 /security/selinux/ss | |
parent | ea77f7a2e8561012cf100c530170f12351c3b53e (diff) |
selinux: fix case of names with whitespace/multibytes on /selinux/create
I submit the patch again, according to patch submission convension.
This patch enables to accept percent-encoded object names as forth
argument of /selinux/create interface to avoid possible bugs when we
give an object name including whitespace or multibutes.
E.g) if and when a userspace object manager tries to create a new object
named as "resolve.conf but fake", it shall give this name as the forth
argument of the /selinux/create. But sscanf() logic in kernel space
fetches only the part earlier than the first whitespace.
In this case, selinux may unexpectedly answer a default security context
configured to "resolve.conf", but it is bug.
Although I could not test this patch on named TYPE_TRANSITION rules
actually, But debug printk() message seems to me the logic works
correctly.
I assume the libselinux provides an interface to apply this logic
transparently, so nothing shall not be changed from the viewpoint of
application.
Signed-off-by: KaiGai Kohei <kohei.kaigai@emea.nec.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/ss')
0 files changed, 0 insertions, 0 deletions