Re: trafficserver and raw disk access in FreeBSD

2012-07-23 Thread Wojciech Puchar

yeah, rules in devfs always work. and it may introduce more challenge on
operation management, is there any way that we can do it more clean?


what challenges?



should we set the permission for :operator g+w on disks and partitions?


you still may just do chown/chmod


then we can put a dedicate user for trafficserver into operator group.


? 2012-07-22?? 17:03 +0200?Wojciech Puchar???

Apache Traffic Server may use raw disk for caching, and for privilege
elevation, the worker process(traffic_server) will setuid to nobody, my
question is, how to make traffic_server access the /dev/ada*?

in linux, disk permitting is root:disk 0660, we can go with:
1, setup a new user 'ats', and put it into 'disk' group
2, after setuid, run initgroups() to complete the groups evn.


devfs.conf


--
zym, Zhao Yongming.
aka: yonghao @ taobao.com


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Kernel thread stack size

2012-07-23 Thread Konstantin Belousov
On Mon, Jul 23, 2012 at 02:54:30AM -0400, Richard Yao wrote:
> What is the default kernel thread stack size on FreeBSD? I am
> particularly interested in knowing about i386 and amd64, but knowing
> this for other architectures (such as MIPS) would also be useful.
> 

Look for the KSTACK_PAGES symbol defined in sys//include/param.h.
It defines _default_ number of pages allocated for kernel stack of
new thread.

We have 4 pages for amd64, and 2 pages for i386, AFAIR. Look up the MIPS
yourself.


pgpMN8ysCIGxx.pgp
Description: PGP signature