From: "Matthias Görgens" <matthias.goergens@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] [BUG] hasmntopt weirdness
Date: Thu, 30 Mar 2023 18:02:43 +0800 [thread overview]
Message-ID: <CA+X7ob_Lc3OEmzUChCUAD-AFOtiVLNCQuqaNN1NJCH19LmiP0Q@mail.gmail.com> (raw)
Musl's `hasmntopt` is a bit weird.
For example, my `/proc/mounts` contains the following line:
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k,inode64 0 0
If I run `hasmntopt(entp, "suid")` on that entry with glibc, I get
NULL. In musl I get: "suid,nodev,noexec,relatime,size=65536k,inode64".
Do we have a spec for what should happen? I can find multiple
descriptions online, some of them would allow what musl does, but not
all. I don't know what's authoritative.
Arguably the musl behaviour is a bit silly by itself, and would
actively cause bugs for someone porting programs from glibc.
next reply other threads:[~2023-03-30 10:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-30 10:02 Matthias Görgens [this message]
2023-03-30 13:57 ` Rich Felker
2023-03-30 14:47 ` Matthias Görgens
2023-03-30 15:40 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+X7ob_Lc3OEmzUChCUAD-AFOtiVLNCQuqaNN1NJCH19LmiP0Q@mail.gmail.com \
--to=matthias.goergens@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).