• John Johansen's avatar
    Update apparmor's handling of rlimits for cpu limit and more natural units · f6982210
    John Johansen authored
    Allow for rlimit cpu to specified which is now supported by the kernel.
    
    Previously the rlimit units where limited to K, M, G and would fail when
    KB, MB, GB where used.  Allow for both, also allow for units on lengths
    of time, by specifying "seconds", "minutes", "hours".. or any unique subset
    eg. "s", "sec", "m", "min", "h", "hour" ..
    
    NOTE:
    This patch does not extend rlimits to be able to handle setting of tasks
    that are confined by other profiles.
    Signed-off-by: 's avatarJohn Johansen <john.johansen@canonical.com>
    f6982210
parser_lex.l 15.1 KB