aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/agp/frontend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c
index 9bd5a958954c..55d7a82bd071 100644
--- a/drivers/char/agp/frontend.c
+++ b/drivers/char/agp/frontend.c
@@ -689,7 +689,7 @@ static int agp_open(struct inode *inode, struct file *file)
689 set_bit(AGP_FF_ALLOW_CLIENT, &priv->access_flags); 689 set_bit(AGP_FF_ALLOW_CLIENT, &priv->access_flags);
690 priv->my_pid = current->pid; 690 priv->my_pid = current->pid;
691 691
692 if ((current->uid == 0) || (current->suid == 0)) { 692 if (capable(CAP_SYS_RAWIO)) {
693 /* Root priv, can be controller */ 693 /* Root priv, can be controller */
694 set_bit(AGP_FF_ALLOW_CONTROLLER, &priv->access_flags); 694 set_bit(AGP_FF_ALLOW_CONTROLLER, &priv->access_flags);
695 } 695 }