Re: About default init umask , and kernel umask, cron umask

2012-12-06 Thread daniel curtis
  (...) so a good umask may be set there for init.


Hi, and a good setting for umask is? I know that it depends
on many things, but what do you think?

Cheers


About default init umask , and kernel umask, cron umask

2012-12-05 Thread Min Wang

HI

Could any one tell what is the default umask for kernel, init, cron? is 
it configurable?


google around , I could not find a clear answer.

assuming:

kernel ---  init ---  spawned tasks

so the kernel will set default umask , then the pass it to init?

what the default umask? where is the configure location? or not 
configurable?


Init will spawn those tasks, those tasks will inherint the umask from 
init, right?


what is the cron default umask?






thanks

min


--
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50bf7647.3080...@gmail.com



Re: About default init umask , and kernel umask, cron umask

2012-12-05 Thread Mike Mestnik
On many Unix systems, the default umask is 022.  This would be set
explicitly by init or not at all (000).  If your writing an init
replacement, make sure to set umask then later you can read a config
file and set the umask to the user configured value.

See:
http://www.juniper.net/security/auto/vulnerabilities/vuln3031.html

On 12/05/12 10:28, Min Wang wrote:
 HI
 
 Could any one tell what is the default umask for kernel, init, cron? is
 it configurable?
 
 google around , I could not find a clear answer.
 
 assuming:
 
 kernel ---  init ---  spawned tasks
 
 so the kernel will set default umask , then the pass it to init?
 
 what the default umask? where is the configure location? or not
 configurable?
 
 Init will spawn those tasks, those tasks will inherint the umask from
 init, right?
 
 what is the cron default umask?
 
 
 
 
 
 
 thanks
 
 min
 
 


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50c01c6e.4080...@mikemestnik.net



Re: About default init umask , and kernel umask, cron umask

2012-12-05 Thread Mike Mestnik
Also keep in mind on modern systems init is started from the initrd and
not by the kernel, so a good umask may be set there for init.

http://linux.die.net/man/8/pivot_root

On 12/05/12 10:28, Min Wang wrote:
 HI
 
 Could any one tell what is the default umask for kernel, init, cron? is
 it configurable?
 
 google around , I could not find a clear answer.
 
 assuming:
 
 kernel ---  init ---  spawned tasks
 
 so the kernel will set default umask , then the pass it to init?
 
 what the default umask? where is the configure location? or not
 configurable?
 
 Init will spawn those tasks, those tasks will inherint the umask from
 init, right?
 
 what is the cron default umask?
 
 
 
 
 
 
 thanks
 
 min
 
 


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50c01e0b.4020...@mikemestnik.net