OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Licensed Materials - Property of IBM | 3 * Licensed Materials - Property of IBM |
4 * | 4 * |
5 * trousers - An open source TCG Software Stack | 5 * trousers - An open source TCG Software Stack |
6 * | 6 * |
7 * (C) Copyright International Business Machines Corp. 2004 | 7 * (C) Copyright International Business Machines Corp. 2004 |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 struct group *grp; | 710 struct group *grp; |
711 struct passwd *pw; | 711 struct passwd *pw; |
712 mode_t mode = (S_IRUSR|S_IWUSR); | 712 mode_t mode = (S_IRUSR|S_IWUSR); |
713 #endif /* SOLARIS */ | 713 #endif /* SOLARIS */ |
714 TSS_RESULT result; | 714 TSS_RESULT result; |
715 | 715 |
716 init_tcsd_config(conf); | 716 init_tcsd_config(conf); |
717 | 717 |
718 #ifdef SOLARIS | 718 #ifdef SOLARIS |
719 /* | 719 /* |
720 » * Solaris runs as root:sys but with reduced privileges | 720 » * Solaris runs as Rajiv Andrade <srajiv@linux.vnet.:sys but with reduced
privileges |
721 * so we don't need to create a new user/group and also so | 721 * so we don't need to create a new user/group and also so |
722 * we can have auditing support. The permissions on | 722 * we can have auditing support. The permissions on |
723 * the tcsd configuration file are not checked on Solaris. | 723 * the tcsd configuration file are not checked on Solaris. |
724 */ | 724 */ |
725 #endif | 725 #endif |
726 /* look for a config file, create if it doesn't exist */ | 726 /* look for a config file, create if it doesn't exist */ |
727 if (stat(TCSD_CONFIG_FILE, &stat_buf) == -1) { | 727 if (stat(TCSD_CONFIG_FILE, &stat_buf) == -1) { |
728 if (errno == ENOENT) { | 728 if (errno == ENOENT) { |
729 /* no config file? use defaults */ | 729 /* no config file? use defaults */ |
730 config_set_defaults(conf); | 730 config_set_defaults(conf); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 if (chmod(tcsd_options.system_ps_dir, mode) == -1) { | 843 if (chmod(tcsd_options.system_ps_dir, mode) == -1) { |
844 LogError("chmod(%s) failed: %s", tcsd_options.system_ps_
dir, | 844 LogError("chmod(%s) failed: %s", tcsd_options.system_ps_
dir, |
845 strerror(errno)); | 845 strerror(errno)); |
846 return TCSERR(TSS_E_INTERNAL_ERROR); | 846 return TCSERR(TSS_E_INTERNAL_ERROR); |
847 } | 847 } |
848 } | 848 } |
849 | 849 |
850 return TSS_SUCCESS; | 850 return TSS_SUCCESS; |
851 } | 851 } |
852 | 852 |
OLD | NEW |