差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:kernel:cgroup:マウントオプション [2013/04/25 08:49] – [clone_children] tenforward | linux:kernel:cgroup:マウントオプション [2013/04/25 11:01] (現在) – [release_agent=] tenforward | ||
|---|---|---|---|
| 行 10: | 行 10: | ||
| ^ clone_children | cpu_set サブシステムだけで有効.子グループを作成したら親グループの設定を継承(コピー)する | | ^ clone_children | cpu_set サブシステムだけで有効.子グループを作成したら親グループの設定を継承(コピー)する | | ||
| ^ xattr | 拡張ファイル属性サポートでマウント | | ^ xattr | 拡張ファイル属性サポートでマウント | | ||
| + | ^ release_agent= | release_agent ファイルに書き込む実行ファイルのパス | | ||
| ^ name= | マウントした階層構造を後で名前でマウントできるように名前を付ける.もしくは既にある名前と同じ階層構造をマウントする | | ^ name= | マウントした階層構造を後で名前でマウントできるように名前を付ける.もしくは既にある名前と同じ階層構造をマウントする | | ||
| 行 150: | 行 151: | ||
| root@plamo50:/ | root@plamo50:/ | ||
| setfattr: tasks: Invalid argument | setfattr: tasks: Invalid argument | ||
| - | root@plamo50:/ | ||
| - | getfattr: invalid option -- ' | ||
| - | Usage: getfattr [-hRLP] [-n name|-d] [-e en] [-m pattern] path... | ||
| - | Try `getfattr --help' | ||
| root@plamo50:/ | root@plamo50:/ | ||
| # file: tasks | # file: tasks | ||
| 行 162: | 行 159: | ||
| trusted.test=" | trusted.test=" | ||
| + | root@plamo50:/ | ||
| + | root@plamo50:/ | ||
| + | </ | ||
| + | |||
| + | xattr の名前空間としては security.* と trusted.* だけが許可されているようです.getattr -d コマンドが何も返さないですね. | ||
| + | |||
| + | 許可する名前空間は kernel/ | ||
| + | |||
| + | <code c> | ||
| + | static bool is_valid_xattr(const char *name) | ||
| + | { | ||
| + | if (!strncmp(name, | ||
| + | !strncmp(name, | ||
| + | return true; | ||
| + | return false; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== release_agent= ===== | ||
| + | < | ||
| + | root@plamo50:/# | ||
| + | root@plamo50:/# | ||
| + | root@plamo50:/ | ||
| + | /test.sh | ||
| + | root@plamo50:/ | ||
| + | 0 | ||
| + | root@plamo50:/ | ||
| + | root@plamo50:/ | ||
| + | 1 | ||
| + | root@plamo50:/ | ||
| + | root@plamo50:/ | ||
| + | root@plamo50:/ | ||
| + | 2810 | ||
| + | root@plamo50:/ | ||
| + | root@plamo50:/ | ||
| + | Apr 25 19:59:49 plamo50 logger: Release!!Release!! | ||
| + | </ | ||
| + | |||
| + | /test.sh は | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | /bin/logger " | ||
| </ | </ | ||