linux - SIGKILL 权限策略是什么?

标签 linux process posix signals sigkill

什么是 SIGKILL 权限策略?

我假设我无法在非 root 用户上运行时杀死内核或其他用户的某些内容,但我还没有找到任何关于此的文档。

最佳答案

来自 http://linux.die.net/man/2/kill :

For a process to have permission to send a signal it must either be privileged (under Linux: have the CAP_KILL capability), or the real or effective user ID of the sending process must equal the real or saved set-user-ID of the target process. In the case of SIGCONT it suffices when the sending and receiving processes belong to the same session.

关于linux - SIGKILL 权限策略是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1219811/

相关文章:

linux - 确定各种文件系统的缓存未命中

为进程创建 n 个子进程

java - 在两个不同的进程上运行两个 Activity

java - 使用java时进程输入流有限制吗?

linux - SIGCHLD 未在进程树中传递

c - 在 POSIX 中将整数值转换为 void* 并再次返回是否总是安全的?

linux - ack在linux中使用crontab什么都不输出

linux - 如何确定一个linux符号链接(symbolic link)是指向一个目录还是一个文件

c++ - 为什么在使用 O_DIRECT 写入文件时从文件中读回数据时数据损坏

shell -/bin/sh : POSIX vs implementations by Bash/Dash/FreeBSD's sh 参数中 '--' 的处理