unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41048] [PATCH] doc: add comment about ofl for Pam mount.
@ 2020-05-03 12:42 Michael Rohleder
  2020-09-02 14:49 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Rohleder @ 2020-05-03 12:42 UTC (permalink / raw)
  To: 41048


[-- Attachment #1.1: Type: text/plain, Size: 267 bytes --]

Pam mount uses `ofl` from hxtools [1] to kill processes that have open
files on the filesystem mounted.
As we dont have hxtools (and I think we shouldnt), one has to configure
pam mount to use something else, eg `fuser`. This is an attempt to
document that somehow.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: [PATCH] doc: add comment about ovl for Pam mount. --]
[-- Type: text/x-patch, Size: 867 bytes --]

From 7a3cd9cd00cbd95e599a8d79400591e2fc589f33 Mon Sep 17 00:00:00 2001
From: Michael Rohleder <mike@rohleder.de>
Date: Sun, 3 May 2020 14:17:37 +0200
Subject: [PATCH] doc: add comment about ofl for Pam mount.

* doc/guix.texi: (Pam Mount) add comment about ofl.
---
 doc/guix.texi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index d5d8662937..aa182df183 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -25441,6 +25441,8 @@ the partition where he stores his data:
                        (hup "0")
                        (term "no")
                        (kill "no")))
+            ;; if anything above is "true":
+            ;; (ofl "/run/current-system/profile/bin/fuser -km %(MNTPT)")
             (mkmountpoint (@@ (enable "1")
                              (remove "true")))))
 
-- 
2.26.2


[-- Attachment #1.3: Type: text/plain, Size: 287 bytes --]


Footnotes: 
[1]  https://github.com/ghthor/hxtools

-- 
"These download files are in Microsoft Word 6.0 format.  After unzipping, 
these files can be viewed in any text editor, including all versions of 
Microsoft Word, WordPad, and Microsoft Word Viewer."  [Microsoft website]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#41048] [PATCH] doc: add comment about ofl for Pam mount.
  2020-05-03 12:42 [bug#41048] [PATCH] doc: add comment about ofl for Pam mount Michael Rohleder
@ 2020-09-02 14:49 ` Ludovic Courtès
  2020-09-02 15:25   ` Michael Rohleder
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2020-09-02 14:49 UTC (permalink / raw)
  To: Michael Rohleder; +Cc: 41048

Hi,

This patch fell through the cracks…

Michael Rohleder <mike@rohleder.de> skribis:

> Pam mount uses `ofl` from hxtools [1] to kill processes that have open
> files on the filesystem mounted.
> As we dont have hxtools (and I think we shouldnt), one has to configure
> pam mount to use something else, eg `fuser`. This is an attempt to
> document that somehow.
>
> From 7a3cd9cd00cbd95e599a8d79400591e2fc589f33 Mon Sep 17 00:00:00 2001
> From: Michael Rohleder <mike@rohleder.de>
> Date: Sun, 3 May 2020 14:17:37 +0200
> Subject: [PATCH] doc: add comment about ofl for Pam mount.
>
> * doc/guix.texi: (Pam Mount) add comment about ofl.
> ---
>  doc/guix.texi | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/doc/guix.texi b/doc/guix.texi
> index d5d8662937..aa182df183 100644
> --- a/doc/guix.texi
> +++ b/doc/guix.texi
> @@ -25441,6 +25441,8 @@ the partition where he stores his data:
>                         (hup "0")
>                         (term "no")
>                         (kill "no")))
> +            ;; if anything above is "true":
> +            ;; (ofl "/run/current-system/profile/bin/fuser -km %(MNTPT)")

It’s not clear what these two lines mean.  The idea is to tell users to
configure PAM Mount to use ‘fuser’ as a replacement for ‘ofl’, right?  I
think that’d deserve one or two sentences of explanation.  WDYT?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#41048] [PATCH] doc: add comment about ofl for Pam mount.
  2020-09-02 14:49 ` Ludovic Courtès
@ 2020-09-02 15:25   ` Michael Rohleder
  2020-09-02 20:18     ` bug#41048: " Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Rohleder @ 2020-09-02 15:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 41048

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

Hi Ludo!

Ludovic Courtès <ludo@gnu.org> writes:
>> +            ;; if anything above is "true":
>> +            ;; (ofl "/run/current-system/profile/bin/fuser -km %(MNTPT)")
>
> It’s not clear what these two lines mean.  The idea is to tell users to
> configure PAM Mount to use ‘fuser’ as a replacement for ‘ofl’, right?  I
> think that’d deserve one or two sentences of explanation.  WDYT?

Yes, that is/was the idea, because killing processes would not work
otherwise.
Now that we have autofs, I don't think it's relevant any more, so we can
close it?

-- 
No one gets sick on Wednesdays.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41048: [PATCH] doc: add comment about ofl for Pam mount.
  2020-09-02 15:25   ` Michael Rohleder
@ 2020-09-02 20:18     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-09-02 20:18 UTC (permalink / raw)
  To: Michael Rohleder; +Cc: 41048-done

Hi Michael,

Michael Rohleder <mike@rohleder.de> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>>> +            ;; if anything above is "true":
>>> +            ;; (ofl "/run/current-system/profile/bin/fuser -km %(MNTPT)")
>>
>> It’s not clear what these two lines mean.  The idea is to tell users to
>> configure PAM Mount to use ‘fuser’ as a replacement for ‘ofl’, right?  I
>> think that’d deserve one or two sentences of explanation.  WDYT?
>
> Yes, that is/was the idea, because killing processes would not work
> otherwise.

OK.

> Now that we have autofs, I don't think it's relevant any more, so we can
> close it?

Fine with me, done!

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-02 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-03 12:42 [bug#41048] [PATCH] doc: add comment about ofl for Pam mount Michael Rohleder
2020-09-02 14:49 ` Ludovic Courtès
2020-09-02 15:25   ` Michael Rohleder
2020-09-02 20:18     ` bug#41048: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).