Drew DeVault on Nostr: I just learned that O_RDONLY is a lie on Linux because you can just open ...
I just learned that O_RDONLY is a lie on Linux because you can just open /proc/self/fd/whatever with O_RDWR to change the mode
That's fucking gross man
Published at
2024-01-05 11:01:45Event JSON
{
"id": "fe4f9299cfc7d94908b45d276267269aa9ea2e902b9f5537ad7e7b1140e53602",
"pubkey": "05bbadaea41d30c3cf3b7fb1027622eb00cca66635fc9047053df7f9a54cb0c7",
"created_at": 1704452505,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/drewdevault/statuses/111702999416202957",
"activitypub"
]
],
"content": "I just learned that O_RDONLY is a lie on Linux because you can just open /proc/self/fd/whatever with O_RDWR to change the mode\n\nThat's fucking gross man",
"sig": "4b3e8b7ab62b4bae6d982e995fb57afc4d3707218929cdfabeae97a9bfddb0712c9e41e1c852c097268d3b41a3138b2e8c507066529a6c9dd92889ca9158bd8f"
}