Re: [PATCH 3/22] Remove deprecated parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 19 Dec 2006 23:18:10 +0100 Corentin CHARY wrote:

> Just look the code ;)
> > > -               printk(KERN_WARNING "  asus_uid and asus_gid parameters
> > > are " -                      "deprecated, use chown and chmod
> > > instead!\n"); -       }

That's really not the right place for it.
See Documentation/feature-removal-schedule.txt .


> Le mardi 19 décembre 2006 22:45, vous avez écrit :
> > On Tue, 19 Dec 2006 22:18:55 +0100 Corentin CHARY wrote:
> > > Remove the deprecated asus_uid and asus_gid parameters.
> >
> > Hi,
> > Where are they documented as deprecated?
> >
> > Thanks.
> >
> > > Signed-off-by: Corentin Chary <corentincj@xxxxxxxxxx>
> > > ---
> > >  asus_acpi.c |   29 +++++------------------------
> > >  1 file changed, 5 insertions(+), 24 deletions(-)
> > >
> > > --- a/drivers/acpi/asus_acpi.c  2006-12-15 10:36:09.000000000 +0100
> > > +++ b/drivers/acpi/asus_acpi.c  2006-12-15 10:37:36.000000000 +0100
> > > @@ -76,13 +76,6 @@
> > >  MODULE_DESCRIPTION(ACPI_HOTK_NAME);
> > >  MODULE_LICENSE("GPL");
> > >
> > > -static uid_t asus_uid;
> > > -static gid_t asus_gid;
> > > -module_param(asus_uid, uint, 0);
> > > -MODULE_PARM_DESC(asus_uid, "UID for entries in /proc/acpi/asus.\n");
> > > -module_param(asus_gid, uint, 0);
> > > -MODULE_PARM_DESC(asus_gid, "GID for entries in /proc/acpi/asus.\n");
> > > -
> > >  /* For each model, all features implemented,
> > >   * those marked with R are relative to HOTK, A for absolute */
> > >  struct model_data {
> > > @@ -916,8 +909,8 @@
> > >         proc->read_proc = readfunc;
> > >         proc->data = acpi_driver_data(device);
> > >         proc->owner = THIS_MODULE;
> > > -       proc->uid = asus_uid;
> > > -       proc->gid = asus_gid;
> > > +       proc->uid = 0;
> > > +       proc->gid = 0;
> > >         return 0;
> > >  }
> > >
> > > @@ -926,19 +919,7 @@
> > >         struct proc_dir_entry *proc;
> > >         mode_t mode;
> > >
> > > -       /*
> > > -        * If parameter uid or gid is not changed, keep the default
> > > setting for
> > > -        * our proc entries (-rw-rw-rw-) else, it means we care about
> > > security,
> > > -        * and then set to -rw-rw----
> > > -        */
> > > -
> > > -       if ((asus_uid == 0) && (asus_gid == 0)) {
> > > -               mode = S_IFREG | S_IRUGO | S_IWUGO;
> > > -       } else {
> > > -               mode = S_IFREG | S_IRUSR | S_IRGRP | S_IWUSR | S_IWGRP;
> > > -               printk(KERN_WARNING "  asus_uid and asus_gid parameters
> > > are " -                      "deprecated, use chown and chmod
> > > instead!\n"); -       }
> > > +       mode = S_IFREG | S_IRUGO | S_IWUGO;
> > >
> > >         acpi_device_dir(device) = asus_proc_dir;
> > >         if (!acpi_device_dir(device))
> > > @@ -949,8 +930,8 @@
> > >                 proc->read_proc = proc_read_info;
> > >                 proc->data = acpi_driver_data(device);
> > >                 proc->owner = THIS_MODULE;
> > > -               proc->uid = asus_uid;
> > > -               proc->gid = asus_gid;
> > > +               proc->uid = 0;
> > > +               proc->gid = 0;
> > >         } else {
> > >                 printk(KERN_WARNING "  Unable to create " PROC_INFO
> > >                        " fs entry\n");
> > >
> > >
> > > --

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux