The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
To configure PAM to use the rules that you configure in the
/etc/cgrules.conf
file:
Install the
libcgroup-pam
package.#
yum install libcgroup-pam
The
pam_cgroup.so
module is installed in/lib64/security
on 64-bit systems, and in/lib/security
on 32-bit systems.Edit the
/etc/pam.d/su
configuration file, and add the following line for thepam_cgroup.so
module:session optional pam_cgroup.so
For a service that has a configuration file in
/etc/sysconfig
, you can add the following
line to the start
section of the file to
start the service in a specified cgroup:
CGROUP_DAEMON="*:cgroup