| 2890 | |
| 2891 | |
| 2892 | Try<Nothing> deny( |
| 2893 | const string& hierarchy, |
| 2894 | const string& cgroup, |
| 2895 | const Entry& entry) |
| 2896 | { |
| 2897 | Try<Nothing> write = cgroups::write( |
| 2898 | hierarchy, |
| 2899 | cgroup, |
| 2900 | "devices.deny", |
| 2901 | stringify(entry)); |
| 2902 | |
| 2903 | if (write.isError()) { |
| 2904 | return Error("Failed to write to 'devices.deny': " + write.error()); |
| 2905 | } |
| 2906 | |
| 2907 | return Nothing(); |
| 2908 | } |
| 2909 | |
| 2910 | |
| 2911 | } // namespace devices { |