* [PATCH] Conceal ftp user passwd in rdsosreport
@ 2015-09-28 7:20 Zhiguo Deng
[not found] ` <1443424830-6198-1-git-send-email-bjzgdeng-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Zhiguo Deng @ 2015-09-28 7:20 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Zhiguo Deng
When using authenticated FTP, the password contained in the kernel command line.
This causes it to end up in the generated /run/initramfs/rdsosreport.txt
Signed-off-by: Zhiguo Deng <bjzgdeng-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
modules.d/99base/rdsosreport.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules.d/99base/rdsosreport.sh b/modules.d/99base/rdsosreport.sh
index 3e2ac87..4b8afb7 100755
--- a/modules.d/99base/rdsosreport.sh
+++ b/modules.d/99base/rdsosreport.sh
@@ -10,7 +10,7 @@ set -x
cat /lib/dracut/dracut-*
-cat /proc/cmdline
+cat /proc/cmdline | sed -e 's/\(ftp:\/\/.*\):.*@/\1:*******@/'
[ -f /etc/cmdline ] && cat /etc/cmdline
@@ -47,9 +47,9 @@ cat /proc/mdstat
command -v ip >/dev/null 2>/dev/null && ip addr
if command -v journalctl >/dev/null 2>/dev/null; then
- journalctl -ab --no-pager -o short-monotonic
+ journalctl -ab --no-pager -o short-monotonic | sed -e 's/\(ftp:\/\/.*\):.*@/\1:*******@/'
else
- dmesg
+ dmesg | sed -e 's/\(ftp:\/\/.*\):.*@/\1:*******@/'
[ -f /run/initramfs/init.log ] && cat /run/initramfs/init.log
fi
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Conceal ftp user passwd in rdsosreport
[not found] ` <1443424830-6198-1-git-send-email-bjzgdeng-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
@ 2015-09-28 8:01 ` Dracut GitHub Import Bot
0 siblings, 0 replies; 2+ messages in thread
From: Dracut GitHub Import Bot @ 2015-09-28 8:01 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Patchset imported to github.
Pull request:
<https://github.com/haraldh/dracut/compare/master...dracut-mailing-devs:1443424830-6198-1-git-send-email-bjzgdeng%40linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-28 8:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28 7:20 [PATCH] Conceal ftp user passwd in rdsosreport Zhiguo Deng
[not found] ` <1443424830-6198-1-git-send-email-bjzgdeng-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2015-09-28 8:01 ` Dracut GitHub Import Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox