aboutgitcodelistschat:MatrixIRC
path: root/demo/mknod.hjson
blob: 98715ec475712a66f50740aeabc8573bc0b8ac05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[
  {
    "match": [
      { "mknodat":
        { "path": { "set": "path" },
          "mode": { "set": "mode" },
          "type": { "set": "type" },
          "major": 1,
          "minor": { "value": { "in": [ 3, 5, 7, 8, 9 ] }, "set": "minor" }
        }
      },
      { "mknod":
        { "path": { "set": "path" },
          "mode": { "set": "mode" },
          "type": { "set": "type" },
          "major": 1,
          "minor": { "value": { "in": [ 3, 5, 7, 8, 9 ] }, "set": "minor" }
        }
      }
    ],
    "call": [
      { "mknod":
        { "path": { "get": "path" },
          "mode": { "get": "mode" },
          "type": { "get": "type" },
          "major": 1,
          "minor": { "get": "minor" }
        },
        "context": { "mnt": "caller" }
      },
      {
        "lchown": {
           "path": { "get": "path" },
           "uid" : { "caller": "uid" },
           "gid" : { "caller": "gid" }
        },
        "context": { "mnt": "caller" }
      }
     ],
    "return": { "value": 0, "error": 0 }
  }
]