Bug 1678 - Insufficient privileges to chroot() on AIX
Summary: Insufficient privileges to chroot() on AIX
Status: CLOSED DUPLICATE of bug 1567
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.3p1
Hardware: PPC AIX
: P2 major
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 18:41 AEDT by Cristi Terpea
Modified: 2010-04-16 15:49 AEST (History)
2 users (show)

See Also:


Attachments
truss log on AIX 6.1 (25.50 KB, text/plain)
2009-12-01 18:41 AEDT, Cristi Terpea
no flags Details
patch for setpcred with chroot (1.11 KB, text/plain)
2009-12-01 18:42 AEDT, Cristi Terpea
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristi Terpea 2009-12-01 18:41:43 AEDT
Created attachment 1735 [details]
 truss log on AIX 6.1

I tested openssh-5.3p1 on 3 machines:
  AIX ... 1 5 004036AA4C00
  AIX ... 3 5 0040D7CB4C00
  AIX ... 1 6 0003EADAD300
on each of them I got the same result:
  ...
  debug3: safely_chroot: checking '/home/test'
  Changed root directory to "/home/test"
  Failed to set process credentials
.. then it quits.
I attached the truss log from AIX 6.1 (truss_log.txt)
I also attached the fix that worked for me (this code was posted
already in https://bugzilla.mindrot.org/attachment.cgi?id=1669 ). I
call setpcred before chroot.
Already posted this on https://bugzilla.mindrot.org/show_bug.cgi?id=1567 but had no reply.
Comment 1 Cristi Terpea 2009-12-01 18:42:20 AEDT
Created attachment 1736 [details]
 patch for setpcred with chroot
Comment 2 Darren Tucker 2009-12-07 11:08:26 AEDT
Closing as duplicate since all the relevant info is in #1567.

*** This bug has been marked as a duplicate of bug 1567 ***
Comment 3 Damien Miller 2010-04-16 15:49:42 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1