Opened 7 years ago

Closed 7 years ago

#13533 closed bug (fixed)

login process always logs in as super user

Reported by: mjw Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/Command Line Tools Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When a non-privileged user logs into a haiku box with telnet, the login process does not call setuid() or setgid() so the user is always logged in as the super user.

The attached patch fixes that.

The patch depends on bug #13530.

I wasn't sure what component to list this under. I almost certainly got it wrong.

Attachments (2)

login_uid.patch (555 bytes ) - added by mjw 7 years ago.
proposed fix.
0001-login-process-should-call-setuid-and-setgid.patch (963 bytes ) - added by mjw 7 years ago.
Update patch from a git export

Download all attachments as: .zip

Change History (5)

by mjw, 7 years ago

Attachment: login_uid.patch added

proposed fix.

comment:1 by mjw, 7 years ago

patch: 01

comment:2 by waddlesplash, 7 years ago

Component: System/KernelApplications/Command Line Tools

Patch looks good to me.

by mjw, 7 years ago

Update patch from a git export

comment:3 by waddlesplash, 7 years ago

Resolution: fixed
Status: newclosed

Applied in hrev51182. Thanks!

Note: See TracTickets for help on using tickets.