| Summary: | Trusted IRIX Support | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Jason Ostermann <josterm> | ||||
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED LATER | ||||||
| Severity: | enhancement | CC: | djm, dtucker | ||||
| Priority: | P2 | Keywords: | help-wanted, patch | ||||
| Version: | -current | ||||||
| Hardware: | MIPS | ||||||
| OS: | IRIX | ||||||
| Attachments: |
|
||||||
|
Description
Jason Ostermann
2005-05-20 04:25:36 AEST
Created attachment 919 [details]
Patch to apply Trusted IRIX changes
Proposed patch for Trusted IRIX support. Uncertain if it is complete or will
support non-PAM or PrivilegeSeparation users. Requesting feedback.
Comment on attachment 919 [details] Patch to apply Trusted IRIX changes For the most part, it looks pretty good. The platform-specific bits are where they're supposed to be and the code looks OK. I can't comment on it's functionality since I don't know IRIX at all. There's a few minor stylistic things. If you haven't already, please take a look at http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9 >+ AC_DEFINE(WITH_IRIX_CAP) >+ AC_DEFINE(WITH_IRIX_MAC) We're slowly moving toward the 3-arg form of AC_DEFINE rather than acconfig.h entries, eg: AC_DEFINE(WITH_IRIX_MAC, 1, [Use IRIX MAC Label support]) >+ #ifdef WITH_IRIX_CAP >+ void >+ irix_set_cap(const char * cap_string) >+ { >+ cap_t running_cap; >+ if(cap_string == NULL) Most of the code (and the examples in style(9) have a blank line after variable declarations. >+ fatal("irix_set_cap received NULL for input!"); >+ if(sysconf(_SC_CAP) != 0) { ditto space after "if". >--- openssh-4.0p1.trix/session.c Thu May 12 13:03:23 2005 [...] >+ #ifdef WITH_IRIX_CAP >+ /* Set the user's capabilities before running their RC files!! >+ Only if we won't use login(1), as login handles setting >+ capabilities itself */ >+ if (!options.use_login) { >+ if(child_get_env(env,"CAP") == NULL) >+ irix_set_cap("all="); >+ else >+ irix_set_cap(child_get_env(env,"CAP")); >+ } >+ #endif /* WITH_IRIX_CAP */ This is OK for now. Some time in the future, we're going to attempt to factor out the platform specific code that does things like this on various platforms, in an attempt to make the main code easier to sync and maintain. At that time, this could be moved to platform_set_credentials() or whatever it ends up being called. Target 4.8. This would also be a good point to start using platform.c for theses things. Jason, are you still around and able to test this configuration? Someone with Trusted Irix needs to step up and get this patch to the point where it can be imported. This is a matter of updating the patch to OpenSSH -current and performing testing. None of the regular developers have access to Irix anymore. Given the current state of SGI I can't imagine this happening unless someone with a Trusted IRIX system wants to update and test the diff, and since that doesn't seem to have happened I would guess nobody wants it, so I'm closing this bug. If you have a a burning need for this and have the time and hardware to work on this please re-open. Close all resolved bugs after 7.3p1 release |