Project

General

Profile

Actions

Bug #1693

closed

tmpfs/screen permission issue

Added by ftigeot over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Launching misc/screen(1) with tmpfs mounted on /tmp fails with a permission
error:

$ id
uid=1000(ftigeot) gid=20(staff) groups=20(staff), 0(wheel)

$ screen
You are not the owner of /tmp/screens/S-ftigeot.

$ ls lad /tmp/screens/S-ftigeot
drwx-----
2 root wheel 0B Mar 13 12:45 /tmp/screens/S-ftigeot

The owner of /tmp/screens/S-ftigeot is incorrectly set to root.

With /tmp on a Hammer or UFS file system, /tmp/screens/S-$user ownership is set
to the user which launched screen(1) and its default group:

$ ls lad /tmp/screens/S-ftigeot
drwx-----
1 ftigeot staff 0B Mar 13 12:52 /tmp/screens/S-ftigeot

This issue appeared on a system running DragonFly v2.5.1.945.ge3c80b-DEVELOPMENT
from March 12.

Actions #1

Updated by pavalos over 14 years ago

Confirmed. It looks like chown() is failing for setuid programs.

Actions #2

Updated by dillon over 14 years ago

I replaced tmpfs's chown permissions check code and that seems to fix the problem.

-Matt

Actions

Also available in: Atom PDF