Re: Query regarding kernel modules intercepting system call.
On 09.07.2017 12:06, Lino Sanfilippo wrote: > Hi, > > On 08.07.2017 17:38, Ajinkya Surnis wrote: >> The purpose of assignment is to check the authenticity of the user >> executing the system call, and prevent certain users from executing, kind >> of like certain security programs (although I don't exactly know how they >> work). >> > > I suggest to take a look at "fanotify", which offers you the possibility > to intercept open() calls at VFS level and also provides you with the > user/group id of the file accessing process. > Actually you are provided the file descriptor of the accessed file and the pid of the accessing process. But it is not too hard to derive access rights (e.g. via stat() or fstat()) from these. Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Query regarding kernel modules intercepting system call.
Hi, On 08.07.2017 17:38, Ajinkya Surnis wrote: > The purpose of assignment is to check the authenticity of the user > executing the system call, and prevent certain users from executing, kind > of like certain security programs (although I don't exactly know how they > work). > I suggest to take a look at "fanotify", which offers you the possibility to intercept open() calls at VFS level and also provides you with the user/group id of the file accessing process. Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Patch Question
On 19.04.2017 18:46, Perry Hooker wrote: > > Understood. I'm still open to the possibility that I've made a mistake > - I don't want to re-submit the patch if my analysis is incorrect. > > Maybe I didn't make it clear (my apologies if so) - what I'm really > looking for here is help confirming or refuting my work. If > re-submitting the patch is the best way to do this, then I can > certainly go that route. > Before you do this you should double check that the raised objections are indeed not justified. I have not looked too deep into the code but in function WILC_WFI_p2p_rx() the buffer is conditionally passed to cfg80211_rx_mgmt() which handles the passed data as being little endian. To me this is a strong indication that the data in the buffer is also little endian (which is what Dan pointed out and why the change you propose is not correct). Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Patch Question
Hi, On 18.04.2017 01:28, Perry Hooker wrote: > Hi everyone, > > I recently submitted a patch to the kernel mailing list: > https://lkml.org/lkml/2017/3/21/712 > > I received some feedback on the patch. After a bit of polite > back-and-forth, the respondent stopped replying when I asked for more > information, and I haven't heard anything from the maintainers. > > Based on my analysis (contained in the thread), I still think the > patch is correct & appropriate. As far as I understood Dan Carpenters (last) post in that thread, the content in the buffer is already in little endian order. In this case the code is correct as it is and there is no need for the change you propose. Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Welcome to the "Kernelnewbies" mailing list
Hi, On 11.04.2017 02:10, juan pedro meriƱo wrote: > Hi! > > I have been looking at versions 1,2,3 and 4 of the linux kernel. I would > like to know what are the programs for the kernel development environment. > To test them and add new features. > > Thank you very much! Please take a look at this site: https://www.kernel.org/doc/html/latest/dev-tools/index.html I suggest that you also take a look at the eudyptula challenge: http://eudyptula-challenge.org/ >> You must know your password to change your options (including changing >> the password, itself) or to unsubscribe. It is: >> >> juanpepe >> Did you notice that you have just made your password public to the whole world? Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Problem in First-Patch-Tutorial
Hi, On 12.03.2017 13:15, SIMRAN SINGHAL wrote: > On Sun, Mar 12, 2017 at 4:04 PM, Varsha Raowrote: >> Hello Simran, >> >>> In Reloading Modules I tried the first command it works fine for me. >>> >>> git/kernels/staging$ ls drivers/iio/dummy/*.ko >>> drivers/iio/dummy/iio_dummy_evgen.ko drivers/iio/dummy/iio_dummy.ko >>> >>> Then I tried to run second-command >>> >>> git/kernels/staging$ sudo modprobe -r iio_dummy_evgen >>> >>> I got the following error:- >>> modprobe: FATAL: Module iio_dummy_evgen not found. >> >> Maybe as iio_dummy_evgen is not loaded it causes this error. >> >>> I am not getting what is wrong with this. >> >> You need to execute commands in following order >> >> make drivers/iio/dummy/iio_dummy_evgen.ko >> make drivers/iio/dummy/iio_dummy.ko >> >> sudo modprobe iio_dummy_evgen >> sudo modprobe iio_dummy >> >> Check if they are loaded successfully with lsmod | grep "iio". >> >> Thanks, >> Varsha > > This is also not working. I am getting this error now: > modprobe: FATAL: Module iio_dummy_evgen not found in directory > /lib/modules/4.10.0-rc3+ > > I am basically trying to do the Task1 of IIO. Here is the link:- > https://kernelnewbies.org/IIO_tasks > > In this task they have asked to use this: > $ insmod iio_dummy_evgen.ko > > As this was not working, so I tried modprobe. > modprobe is just a wrapper around insmod. So if insmod does not work, modprobe wont either. Could it be that the kernel you build the module for is not the kernel that you are currently running? Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Which repository to clone ?
On 02.02.2017 00:38, srishti sharma wrote: > Thanks for replying , > Does the one I cloned give me 2.6 kernel version , is this not being > developed now ? > Also why did I need to use gcc plugin-devs ? > Regards > Yes, the one you tried is the (very old) 2.6 kernel. I dont know why you would have to install the plugin-devs. Which distro are you running? Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Which repository to clone ?
Hi, On 01.02.2017 23:09, srishti sharma wrote: > Hey, > I am an absolute newbie , I tried to clone greg kroah-hartman's > staging tree repository , somehow I was not able to boot in the kernel > I built . > > Also, Does this command below give me the latest kernel code ? > > I have tried to clone another repository using the command below > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > > for the recent mainline kernel use git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Regards, Lino ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies