]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgrulesengd: Add wildcard matching for process names
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 4 Nov 2019 23:23:22 +0000 (23:23 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 12 Dec 2019 22:10:28 +0000 (15:10 -0700)
commit831c75c5ff6a59abb64bdedd1dc0d60be0b96139
tree2a3cc0a9fc9b61012d9853a59704aad890168ee9
parentce5f317baa860ac69a9e60186add034dde92aafb
cgrulesengd: Add wildcard matching for process names

This commit adds wildcard matching to process name
parsing in cgrulesengd.  Note that wildcard matching
works for standard rules and ignore rules.

For example, given the following rule in cgrules.conf

\#<user> <controllers> <destination>
tom:foo* memory FooCG/

Processes named 'foo', foo1', 'foo2', etc. would be moved
to the FooCG/ cgroup.  Processes named 'bar', 'fo', etc.
would not match this rule.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/api.c