我在看Linux审计报告。这是一张来自奥斯查的日志。
time->Mon Nov 23 12:30:30 2015
type=PROCTITLE msg=audit(1448281830.422:222556): proctitle=6D616E006175736561726368
type=SYSCALL msg=audit(1448281830.422:222556): arch=c000003e syscall=56 success=yes exit=844 a0=1200011 a1=0 a2=0 a3=7f34afa999d0 items=0 ppid=830 pid=838 auid=1001 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="nroff" exe="/usr/bin/bash" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) 据我所知,comm参数是用户用于调用exe二进制文件的名称。为什么nroff指的是/usr/bin/bash?请注意,这是一个普遍的问题,我见过这种事情,我无法解释,发生了很多次。在这个特殊的例子中,这里有更多关于nroff和bash在我的系统上的数据。
[root@localhost ~]# which nroff
/bin/nroff
[root@localhost ~]# ll -i /bin/nroff
656858 -rwxr-xr-x. 1 root root 3312 Jun 17 10:59 /bin/nroff
[root@localhost ~]# ll -i /usr/bin/bash
656465 -rwxr-xr-x. 1 root root 1071992 Aug 18 13:37 /usr/bin/bash 发布于 2015-11-24 19:24:13
由nroff提供的groff“可执行文件”是一个shell脚本,例如,
#! /bin/sh
# Emulate nroff with groff.
#
# Copyright (C) 1992, 1993, 1994, 1999, 2000, 2001, 2002, 2003,
# 2004, 2005, 2007, 2009
# Free Software Foundation, Inc.
#
# Written by James Clark, maintained by Werner Lemberg.
# This file is of `groff'.根据您使用的系统,/bin/sh可能是指向/usr/bin/bash的符号链接,例如Fedora,它将/bin链接到/usr/bin。
https://unix.stackexchange.com/questions/245217
复制相似问题