A header file: mqueue. h is found in the/etc/inclue directory of the server. If you do not know what to do, check it. The following information is displayed:
(1) Implement posix message queues in linux. You can use man mq_open series functions;
(2) The 2.4 kernel does not support POSIX very well, so it is specially upgraded to 2.6.
-Lposix4 is not added for the link, but-lrt
Http://bbs.chinaunix.net/thread-2191087-1-1.html
(3) Some people mentioned: "The mq_open series implementation in linux is really bad"
Http://www.newsmth.net/nForum/article/LinuxDev/33733
The specific situation needs to be analyzed in detail. We will not discuss it here, but will only prepare materials for future reference.
(4) I even found the "DoS vulnerability in Linux Kernel mq_open system call"
DoS vulnerability in Linux Kernel mq_open system call
Release date: Source: Green Alliance technology Author:
Affected Systems:
Linux Kernel 2.6.9
RedHat Linux ws 4
RedHat Linux Es 4
RedHat Linux Desktop 4
RedHat Linux as 4
Description:
BugTraq ID: 16283
CVE (CAN) ID: CVE-2005-335
Linux Kernel is the kernel used by open source Linux.
Linux Kernel has a directory operation implementation vulnerability. Local attackers may exploit this vulnerability to launch DoS attacks on the system.
If the dentry_open function fails to be called, The mntput function is called multiple times. In this case, the mq_open System Call of Linux kernel may decrease the counter twice, which allows local attackers to make the system busy and cause DOS.
<* Source: Alexander Viro (aviro@redhat.com)
Link: http://lwn.net/Alerts/168077? Format = printable
*>
Suggestion:
Vendor patch:
RedHat
------
For this reason, RedHat has released a Security Bulletin (RHSA-2006: 0101-01) and patch:
RHSA-2006: 0101-01: Important: Kernel Security Update
Link: http://lwn.net/Alerts/168077? Format = printable
Http://tech.ccidnet.com/art/782/20040304/599207_1.html
(5) other materials:
Http://hi.baidu.com/wangjianzhong0/item/4a2e53faa6de08693d1485f4
Http://www.lemthy.com/20120609/linux-posix-message-queue-mq_open/