Commit:     551fd6122d247d76124c4fdb6eb898cc8e3d74aa
Parent:     11282b32a4ed7bb5fc390c83a1d6b9bc8017882c
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 16 13:57:33 2007 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 13:57:33 2007 -0800

    IPoIB: Only allow root to change between datagram and connected mode
    Change the permissions of the "mode" sysfs attribute to be S_IWUSR
    instead of S_IWUGO.
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/ulp/ipoib/ipoib_cm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c 
index 2d48387..8881a71 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -1138,7 +1138,7 @@ static ssize_t set_mode(struct device *d, struct 
device_attribute *attr,
        return -EINVAL;
-static DEVICE_ATTR(mode, S_IWUGO | S_IRUGO, show_mode, set_mode);
+static DEVICE_ATTR(mode, S_IWUSR | S_IRUGO, show_mode, set_mode);
 int ipoib_cm_add_mode_attr(struct net_device *dev)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to