Bug 219214
Summary: | [LSPP / Audit] mq_open and mq_unlink a0 off-by-1 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Michael C Thompson <thompsmc> | ||||
Component: | kernel | Assignee: | Red Hat Kernel Manager <kernel-mgr> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.0 | CC: | eparis, sgrubb | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-12-12 14:16:55 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: | |||||||
Attachments: |
|
Description
Michael C Thompson
2006-12-11 22:33:48 UTC
Created attachment 143346 [details]
Testcase
The mq_open / mq_unlink problem (audit record == pointer + 1) is due to the way glibc implements mq_open, and is not a kernel bug. From ./sysdeps/unix/sysv/linux/mq_open.c in GLibc... mqd_t mq_open (const char *name, int oflag, ...) { if (name[0] != '/') { __set_errno (EINVAL); return -1; } [...] return INLINE_SYSCALL (mq_open, 4, name + 1, oflag, mode, attr); } ...as you can see, when the API is passed "/foo" glibc removes the / giving the kernel just "foo". I am going to close this as not a bug since its an explained condition. |