[ 
https://issues.apache.org/jira/browse/TS-3509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14486515#comment-14486515
 ] 

Bryan Call edited comment on TS-3509 at 4/9/15 1:53 AM:
--------------------------------------------------------

It looks like it might be something going on with capabilities:

With 5.0.1:
{code}
[bcall@l2 ~]$ egrep 'cap|uid|dm-4' ~/out
geteuid()                               = 0
geteuid()                               = 0
getuid()                                = 0
setuid(99)                              = 0
capget(0x20080522, 0, NULL)             = -1 EFAULT (Bad address)
capset(0x20080522, 0, {CAP_NET_BIND_SERVICE|CAP_NET_ADMIN|CAP_IPC_LOCK, 
CAP_DAC_OVERRIDE|CAP_NET_BIND_SERVICE|CAP_NET_ADMIN|CAP_IPC_LOCK, 0}) = 0
stat("/dev/dm-4", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 4), ...}) = 0
open("/dev/dm-4", O_RDONLY)             = 12
stat("/dev/dm-4", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 4), ...}) = 0
open("/dev/dm-4", O_RDONLY)             = 12
{code}


was (Author: bcall):
It looks like it might be something going on with capabilities:

With 5.0.1:
{code}
[bcall@l2 ~]$ egrep 'setuid|dm-4' ~/out
setuid(99)                              = 0
stat("/dev/dm-4", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 4), ...}) = 0
open("/dev/dm-4", O_RDONLY)             = 12
stat("/dev/dm-4", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 4), ...}) = 0
open("/dev/dm-4", O_RDONLY)             = 12
open("/dev/dm-4", O_RDWR|O_DSYNC|O_DIRECT) = 376
[bcall@l2 ~]$ ll /dev/dm-4
brw-rw---- 1 root disk 253, 4 Apr  9 01:36 /dev/dm-4
{code}

> Access permissions for storage entries in cache.config changed
> --------------------------------------------------------------
>
>                 Key: TS-3509
>                 URL: https://issues.apache.org/jira/browse/TS-3509
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>    Affects Versions: 5.3.0
>            Reporter: Bryan Call
>            Priority: Blocker
>             Fix For: 5.3.0
>
>
> It looks like 5.3.0 drops from root before opening up the disk storage now:
> {code}
> [Apr  8 23:52:33.227] Server {0x7ff106a86800} DEBUG: (cache_init) 
> Store::read_config: "/dev/dm-4"
> [Apr  8 23:52:33.227] Server {0x7ff106a86800} DEBUG: (cache_init) 
> Store::read_config - ns = new Span; ns->init("/dev/dm-4",-1), forced volume=-1
> [Apr  8 23:52:33.227] Server {0x7ff106a86800} DEBUG: (cache_init) 
> Store::read_config - could not initialize storage "/dev/dm-4" [unable to 
> access file]
> [bcall@l1 ~]$ ll /dev/dm-4
> brw-rw---- 1 root disk 253, 4 Apr  8 23:52 /dev/dm-4
> [bcall@l1 ~]$ chmod 666 /dev/dm-4
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to