ublksrv_tgt: change default directory of pid file into /tmp/ublksrvd

Prepare for supporting unprivileged ublk device, so create pid file dir
as /tmp/ublksrvd, which can be available for every user.

It won't cause info leak, because normal user can just see how many
devices are created from /tmp/ublksrvd, which info can be retrieved
from /dev/ too.

And pid file is always created in the io handler process context, so
it won't be readable for other users by following system security
policy.

Signed-off-by: Ming Lei <[email protected]>
2 files changed