Bug 217709 - Mistake in example in mount_namespaces(7)
Summary: Mistake in example in mount_namespaces(7)
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P3 low
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-26 10:35 UTC by Göran Uddeborg
Modified: 2025-02-16 20:26 UTC (History)
2 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Göran Uddeborg 2023-07-26 10:35:42 UTC
In the example showing how locked mounts in a less privileged mount namespace can not be split, a command "umount /mnt/dir" is shown. Surely, that should have been "umount /etc/shadow".
Comment 1 Rajesh 2023-12-21 06:09:31 UTC
Hi  Göran,

You are right. It needs to be "umount /etc/shadow". Let me see whether I can make the change.

Rajesh
Comment 2 Rajesh 2023-12-28 16:02:24 UTC
Hi  Göran,

Patch has been submitted. Once it's merged it will show up.

Rajesh
Comment 3 Göran Uddeborg 2023-12-29 21:28:07 UTC
Great!
Comment 4 Göran Uddeborg 2025-02-06 21:42:25 UTC
Did something go wrong with the patch?
Comment 5 Alejandro Colomar 2025-02-06 22:02:34 UTC
Hi Göran,

(In reply to Göran Uddeborg from comment #4)
> Did something go wrong with the patch?

It didn't meet the minimums to be merged, and Rajesh didn't follow up.

If you're interested in it, you can pick up from where he left:
<https://lore.kernel.org/linux-man/CAKkEDkWJa+BbexSD1OGa=RhKuaETmYZUJaLJKZPvsVW9=Vr=JQ@mail.gmail.com/>

Cheers,
Alex
Comment 6 Göran Uddeborg 2025-02-16 19:02:46 UTC
Hi Alex,

I've tried to submit a patch of my own now. While the patch itself is trivial, it took me a little while to figure out how to submit it. Did I get it right?

I couldn't find any way to state in the message the patch would solve this bugzilla. Did I miss something, or is there no such connection?

Regards,
Göran
Comment 7 Alejandro Colomar 2025-02-16 19:16:17 UTC
Hi Göran,

On Sun, Feb 16, 2025 at 07:02:46PM +0000, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217709
> 
> --- Comment #6 from Göran Uddeborg (goeran@uddeborg.se) ---
> Hi Alex,
> 
> I've tried to submit a patch of my own now. While the patch itself is
> trivial,
> it took me a little while to figure out how to submit it. Did I get it right?

Yup, the submission looks right.  Is there anything we could improve in
the contributing guidelines that would have made it easier to figure it
out?

> I couldn't find any way to state in the message the patch would solve this
> bugzilla. Did I miss something, or is there no such connection?

You could add the following line in the commit message:

Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=217709>

> 
> Regards,
> Göran

Have a lovely day!
Alex
Comment 8 Göran Uddeborg 2025-02-16 20:24:19 UTC
> Is there anything we could improve in
> the contributing guidelines that would have made it easier to figure it
> out?

I didn't mean to say it was something bad or missing in the guidelines. Just that it takes a little time to understand a new and unfamiliar workflow.

It didn't take THAT long time! :-)
Comment 9 Alejandro Colomar 2025-02-16 20:26:02 UTC
Makes sense.  Thanks!  :-)

Note You need to log in before you can comment on or make changes to this bug.