[scponly] scponly-4.3 on HP-UX (11.11)

christian.schwabl at chello.at christian.schwabl at chello.at
Thu Jan 5 09:41:31 EST 2006


Hello,

i recently had to compile scponly-4.3 on HP-UX (11.11 on PARISC with HP's C/Ansi-C Compiler).

Here is a list of problem i encounterd and how i solved them (no diffs/patches, i can provide those if someone tells me how to do this the best way....):

1) seteuid in scponly.c: There is no seteuid(..) under HP-UX, i replaced it with setuid(..), which should set the EUID under certain conditions

2) "extern int optreset;" in helper.c: optreset is not declared under HP-UX (maybe in some special getop packages), so i changed this to "int optreset;".  What is optreset used for?

3) LOG_PERROR and LOG_AUTHPRIV: These are not defined under HP-UX, i changed them to LOG_ALERT and LOG_AUTH

4) FILENAME_MAX: This is defined with "14", which makes some problems, for example i had a chrootet user with a homedir of /home/testscp//home/testscp, scponly chrooted to /home/testscp, which is correct but then stayed in / which is wrong.
According to IEEE Std. 1003.1, 2004 Edition, FILENAME_MAX is the "Maximum size in bytes of the longest filename string that the implementation guarantees can be opened."
I redefined FILENAME_MAX with 255

After these changes i was able to compile scponly and after some more work i had a working chrooted environment.

Is there any chance that such changes will be incorporated into the next release?
If more information is needed, feel free to contact me.

kind regards,
cs





More information about the scponly mailing list