accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <josh.el...@gmail.com>
Subject System disallows granting System.GRANT
Date Tue, 03 Mar 2015 01:32:41 GMT
public boolean canGrantSystem(TCredentials c, String user, 
SystemPermission sysPerm) throws ThriftSecurityException {
   authenticate(c);
   // can't grant GRANT
   if (sysPerm.equals(SystemPermission.GRANT))
     throw new ThriftSecurityException(c.getPrincipal(), 
SecurityErrorCode.GRANT_INVALID);
   return hasSystemPermission(c, SystemPermission.GRANT, false);
}

Why don't we allow System.GRANT to be given to other users?

Mime
View raw message