Comment 0 for bug 2007861

Revision history for this message
David Lechevalier (dlecheva) wrote :

The following error message is displayed in the kernel.log

```
Feb 20 14:35:50 test-sm-133 kernel: [ 368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
```

# To reproduce
* Deploy a jammy vm uptodate

* Install needed package
```
apt install samba
apt install cifs-utils
```

* Create a share using the command
```
mkdir -p /data/share1-smb
chmod 777 /data/share1-smb
net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
```

* mount the share using the command
```
mkdir /tmp/test
cd /tmp/test
mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
```

* Start the following python script inside the mounted share
```
#!/usr/bin/env python3
import os

path = "test.txt"
f = open(path, "w+")

os.remove(path)

print(os.stat(path))
```

## Actual result
* The following message is displayed in red in the kernel.log
```
Feb 20 14:35:50 test-sm-133 kernel: [ 368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
```

This message is right, but it should be a debug message not an error.
I tried with a kernel 6.2. I have the same issue