From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Some question about "security context of a task"
Date: Wed, 1 Feb 2012 22:12:55 +0700 [thread overview]
Message-ID: <CAGdaadb+ggJ53SfiJMe2R5oUGkKgMMFvw_-VNmdWT_GptE7i8A@mail.gmail.com> (raw)
In-Reply-To: <CANudz+snKSchS6yY8+w9GyogcwstEEAopmESJbLs=hkCSJo5XA@mail.gmail.com>
Hi....
On Wed, Feb 1, 2012 at 14:12, loody <miloody@gmail.com> wrote:
> below is the place it happen
>
> if (atomic_read(&p->real_cred->user->processes) >=
> ? ? ? ? ? ? p->signal->rlim[RLIMIT_NPROC].rlim_cur) {
Seems like a normal user limit checking...the one we usually set via
"ulimit" command. Checking number of processes to be precise...
> after checking the parameter, I found p->real_cred->user is NULL.
hm, IMHO if it exceeds ulimit, the process creation should just stop.
Not sure why read_cred->user becomes NULL. Maybe that's for clean up,
since later process will be terminated?
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
next prev parent reply other threads:[~2012-02-01 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 7:12 Some question about "security context of a task" loody
2012-02-01 15:12 ` Mulyadi Santosa [this message]
2012-02-01 16:24 ` loody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGdaadb+ggJ53SfiJMe2R5oUGkKgMMFvw_-VNmdWT_GptE7i8A@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).