* running as root.
* Returns 0 if this is allowed, or -EACCES otherwise.
*/
-int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css,
- struct cgroup_taskset *tset);
+int subsys_cgroup_allow_attach(struct cgroup_taskset *tset);
#else /* !CONFIG_CGROUPS */
static inline int cgroup_init_early(void) { return 0; }
static inline int cgroup_init(void) { return 0; }
-static inline int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css,
- struct cgroup_taskset *tset)
+static inline int subsys_cgroup_allow_attach(void *tset)
{
- return 0;
+ return -EINVAL;
}
#endif /* !CONFIG_CGROUPS */