lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <8737a6a5s1.fsf@platform.sh>
Date:   Sun, 09 Jul 2017 01:05:34 +0200
From:   Florian Margaine <florian@...tform.sh>
To:     linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: [PATCH] fs: show frozen status in mountinfo

Putting this in the mountinfo makes it non contractual, and purely
available for the sake of helping out an administrator seeing blocking
behavior.

Signed-off-by: Florian Margaine <florian@...tform.sh>
---
 fs/proc_namespace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index b5713fe..2b8e3dd 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -184,6 +184,8 @@ static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt)
 		goto out;
 	if (sb->s_op->show_options)
 		err = sb->s_op->show_options(m, mnt->mnt_root);
+	if (sb->s_writers.frozen)
+		seq_puts(m, " frozen");
 	seq_putc(m, '\n');
 out:
 	return err;
-- 
2.9.4


Download attachment "signature.asc" of type "application/pgp-signature" (473 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ