aboutsummaryrefslogtreecommitdiff
blob: 153b820aeba6287c30dbbd3185a08599b1c14521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

/***
  Copyright 2015 Lennart Poettering
***/

#include <stdbool.h>
#include <sys/types.h>

#include "cgroup-util.h"

int chown_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift);
int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift);
int create_subcgroup(pid_t pid, bool keep_unit, CGroupUnified unified_requested);