|
@@ -689,7 +689,7 @@ static int agp_open(struct inode *inode, struct file *file)
|
|
set_bit(AGP_FF_ALLOW_CLIENT, &priv->access_flags);
|
|
set_bit(AGP_FF_ALLOW_CLIENT, &priv->access_flags);
|
|
priv->my_pid = current->pid;
|
|
priv->my_pid = current->pid;
|
|
|
|
|
|
- if ((current->uid == 0) || (current->suid == 0)) {
|
|
|
|
|
|
+ if (capable(CAP_SYS_RAWIO)) {
|
|
/* Root priv, can be controller */
|
|
/* Root priv, can be controller */
|
|
set_bit(AGP_FF_ALLOW_CONTROLLER, &priv->access_flags);
|
|
set_bit(AGP_FF_ALLOW_CONTROLLER, &priv->access_flags);
|
|
}
|
|
}
|