nfsv4 acl inheritance does not work remotely

Bug #853723 reported by Vladimir
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:

Directory mounted on server (m1):
/dev/cciss/c0d1p1 on /raid type reiserfs (rw,noatime,nodiratime,acl)

The same directory mounted on client (m4) via nfsv4:
m1:/projects on /export/projects type nfs4 (rw,noatime,hard,intr,acl,rsize=8192,wsize=8192,clientaddr=10.0.0.54,sloppy,addr=10.0.0.7)

Create directory remotely (at client) and set nfs4 acl to inherit permissions:

vk@m4:/projects$ mkdir aaa
vk@m4:/projects$ chmod g+rwxs aaa
vk@m4:/projects$ nfs4_setfacl -a A:fd:OWNER@:rwaDxtTcCy aaa
vk@m4:/projects$ nfs4_setfacl -a A:fd:GROUP@:rwaDxtTcCy aaa
vk@m4:/projects$ nfs4_getfacl aaa
A::OWNER@:rwaDxtTcCy
A::GROUP@:rwaDxtcy
A::EVERYONE@:tcy
A:fdi:OWNER@:rwaDxtTcCy
A:fdi:GROUP@:rwaDxtcy
A:fdi:EVERYONE@:tcy

Now create subdirectory and file remotely (at client):

vk@m4:/projects$ mkdir aaa/dir_ext
vk@m4:/projects$ touch aaa/file_ext

The same locally (at server):

vk@m1:/projects$ mkdir aaa/dir_int
vk@m1:/projects$ touch aaa/file_int

Now check permissions of new directories and folders:

remotely (from client):

vk@m4:/projects$ ls -al aaa
total 1
drwxrws--- 4 vk Users 144 2011-09-19 12:13 .
drwxrwsr-x 27 user Users 760 2011-09-19 12:11 ..
drwxr-s--- 2 vk Users 48 2011-09-19 12:13 dir_ext
drwxrws--- 2 vk Users 48 2011-09-19 12:13 dir_int
-rw-r----- 1 vk Users 0 2011-09-19 12:13 file_ext
-rw-rw---- 1 vk Users 0 2011-09-19 12:13 file_int

and locally (from server):

vk@m1:/projects$ ls -al aaa
total 1
drwxrws---+ 4 vk Users 144 2011-09-19 12:13 .
drwxrwsr-x 27 user Users 760 2011-09-19 12:11 ..
drwxr-s---+ 2 vk Users 48 2011-09-19 12:13 dir_ext
drwxrws---+ 2 vk Users 48 2011-09-19 12:13 dir_int
-rw-r-----+ 1 vk Users 0 2011-09-19 12:13 file_ext
-rw-rw----+ 1 vk Users 0 2011-09-19 12:13 file_int

There IS permissions' inheritance for locally created directory and file, but strangely enough there is NO permissions' inheritance for remotely created directory and file (note, that initial directory and acl were created and set remotely from client).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nfs-kernel-server 1:1.2.0-4ubuntu4.1
ProcVersionSignature: Ubuntu 2.6.32-33.72-generic-pae 2.6.32.41+drm33.18
Uname: Linux 2.6.32-33-generic-pae i686
Architecture: i386
Date: Mon Sep 19 12:55:00 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
ProcEnviron:
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: nfs-utils

Revision history for this message
Vladimir (vladimir-kozlov) wrote :
description: updated
description: updated
Revision history for this message
Vladimir (vladimir-kozlov) wrote :

Absolutely the same if server's filesystem is xfs instead of reiserfs, so the problem is with nfs, but not with server's filesystem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nfs-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Vladimir (vladimir-kozlov) wrote :

Ubuntu 14.04 (trusty) still affected by this bug...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.