Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: src/tcsd/tcsd_conf.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/tcsd/svrside.c ('k') | src/tcsd/tcsd_threads.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/tcsd/svrside.c ('k') | src/tcsd/tcsd_threads.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698