小编Dav*_*fer的帖子

Linux在伪代码中有效,真实,保存,文件系统UID操作

我花了一些时间在Groovy中的一些代码来使Linux UID操作对我自己有点不那么困惑,因为手册页很乱.结果是一个TestCase,用于显示在setuid,seteuid,setfsuid,setreuid和setresuid调用的引擎下发生的事情.不考虑有关返回的错误代码(或不包含)的详细信息.

问题基本上是:我错过了什么吗?

/**
 * This is some Groovy code to explain Linux privilege handling
 * The manipulable data structure is "PermVector", and it is manipulated through a
 * TestCase.
 */

class PermissionTestCase extends GroovyTestCase {

  class PermVector {

    int ruid  // real UID; affects the permissions for sending signals 
    int euid  // effective UID; affects file creation and access
    int suid  // saved UID
    int fsuid // filesystem UID; access control to the file system for NFS in Linux …
Run Code Online (Sandbox Code Playgroud)

unix linux setuid

4
推荐指数
1
解决办法
2960
查看次数

标签 统计

linux ×1

setuid ×1

unix ×1