Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 21:24:01 +0800
From:      "ming.zym@gmail.com" <ming.zym@gmail.com>
To:        "hackers@FreeBSD.org" <hackers@FreeBSD.org>
Subject:   trafficserver and raw disk access in FreeBSD
Message-ID:  <1342963441.4162.8.camel@zym6400>

next in thread | raw e-mail | index | archive | help

--=-seF2u1R8aenZMW6q/M/P
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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.


we need a safe and easy to implement way for raw disk access in
FreeBSD.=20

thanks for you help

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

--=-seF2u1R8aenZMW6q/M/P
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iF4EABEIAAYFAlAL/vEACgkQQBjU8JUwVz6OfwEAhzFapWvHyC1ResMhcDLiY1ck
1PusKENuhqN60tyMiCcA+gO7ON0HPS1MLgJ6EsN9sUnZRQeZFvX/IeI+iRHPsdVT
=8D/m
-----END PGP SIGNATURE-----

--=-seF2u1R8aenZMW6q/M/P--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1342963441.4162.8.camel>