Displaying 1 result from an estimated 1 matches for "hardenened".
Did you mean:
hardened
2003 Oct 21
2
Fwd: Re: Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit
...dle the UMASK from /etc/default/login with sscanf(3C);
It just so happens that I'm using gcc-3.3.1, and I can't say this is definitely an OS or libC or compiler issue. However, the 32 bit binary works, and the 64 bit binary SIGBUSes. Here is a demo that will work whether you are YASSP/JASS hardenened or whatever (because the umask is hard-coded instead of read from /etc/default/login).
---cut---
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int main (){
char var[4] = "777\0";
mode_t mask;
printf("Test case: UMASK=%s in /etc/default/login.\...