Skip to content

Commit

Permalink
Fix problem with creation of the forwarded ticket
Browse files Browse the repository at this point in the history
Following commit f44d455 the daemon is no longer
able to set {uid,gid} on the created file with the forwarded ticket. This patch
completes the previous one by removing the attempt to change {uid,gid}. The file
will be pwn by the daemon owner with permissions 0600.
  • Loading branch information
gganis authored and ljanyst committed May 6, 2014
1 parent 53f5425 commit 087989c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/XrdSeckrb5/XrdSecProtocolkrb5.cc
Expand Up @@ -830,8 +830,6 @@ int XrdSecProtocolkrb5::exp_krbTkn(XrdSecCredentials *cred, XrdOucErrInfo *erp)

// Change permission and ownership of the file
//
if (chown(ccfile, pw->pw_uid, pw->pw_gid) == -1)
return Fatal(erp, errno, "Unable to change file ownership;", ccfile, 0);
if (chmod(ccfile, 0600) == -1)
return Fatal(erp, errno, "Unable to change file permissions;", ccfile, 0);

Expand Down

0 comments on commit 087989c

Please sign in to comment.