Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: "Valentin Vidić" <vvidic@valentin-vidic.from.hr>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Fork
Date: Thu, 9 Jan 2020 11:47:12 +0100
Message-ID: <20200109104711.GE8238@valentin-vidic.from.hr> (raw)
In-Reply-To: <f4658b02228344aea62fee08a0e9069b@SRV-EXCH-2K13.Groupe-Yoni.fr>

On Thu, Jan 09, 2020 at 10:35:16AM +0000, Christophe DUMONT wrote:
> How does the kernel knows when a process calls the fork function that
> he has the rights to create a new process ?

Not sure what you mean by rights, but in copy_process you can
see different checks and errors that can happen when creating
a new process:

https://elixir.bootlin.com/linux/latest/source/kernel/fork.c#L1760

-- 
Valentin

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 10:35 Fork Christophe DUMONT
2020-01-09 10:47 ` Valentin Vidić [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-04-18  6:48 fork varyani.nitin1
2016-04-18  7:12 ` fork alex.david.wilson
2016-04-18  8:18 ` fork cakturk

Reply instructions:

You may reply publically 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=20200109104711.GE8238@valentin-vidic.from.hr \
    --to=vvidic@valentin-vidic.from.hr \
    --cc=kernelnewbies@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

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git