snoopfs.fist

来自「Solaris操作系统下的过滤驱动程序, C源码程序.」· FIST 代码 · 共 25 行

FIST
25
字号
%{  /*   * snoopfs: warn of possible illegal use by non-root non-owners   */%}debug off;%%%op:lookup:postcall {if ((fistLastErr() == EPERM ||     fistLastErr() == ENOENT) &&    $0.owner != %uid && %uid != 0)  printk("snoopfs detected access by uid %d, pid %d, to file %s\n",	 %uid, %pid, name);}%%/* no extra routines are needed *//* * Local variables: * c-basic-offset: 4 * End: */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?