Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safe check rlimit syscall and refactoring #3801

Merged
merged 1 commit into from
Dec 5, 2017
Merged

Safe check rlimit syscall and refactoring #3801

merged 1 commit into from
Dec 5, 2017

Commits on Dec 4, 2017

  1. This patch contains more safe checking in syscall rlimit and unit tests

    The soft limit is the value that the kernel enforces for the corresponding resource
    The hard limit acts as a ceiling for the soft limit
    an unprivileged process may only set its soft limit to a value
    in the range from 0 up to the hard limit.
    So in order to make the change in fds count without any error we should
    inform the user to make the process have CAP_SYS_RESOURCE capability
    in order to set the hard limit.
    
    License: MIT
    Signed-off-by: hoenirvili <hoenirvili@gmail.com>
    hoenirvili authored and kevina committed Dec 4, 2017
    Configuration menu
    Copy the full SHA
    f16ada6 View commit details
    Browse the repository at this point in the history