title: Not able to load module in Kernel it is showing Operation not permitted
body: <p>I have just started learning Kernel Module and I am on my first program, here is my code and Makefile</p>
  
  <p>-->hello-1.c /<strong>My first program</strong>/</p>
  
  <pre><code>  #include &lt;linux/module.h&gt;
    #include &lt;linux/kernel.h&gt;
      int init_module(void ){
        printk(KERN_INFO "Hello this is known as module.\n" );
        return 0;
        }
  
    void cleanup_module(void ){
       printk(KERN_INFO "Bye. We'll come back soon.\n" );
     }
  </code></pre>
  
  <p>-->Makefile</p>
  
  <pre><code>obj-m += hello-1.o
    all:
      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
    clean:
      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
  </code></pre>
  
  <p>Now the issue is I am able to do <code>make all</code> but I am not able to load it,actually, I tried</p>
  
  <p><code>insmod ./hello-1.ko</code> It did not work for me.</p>
  
  <p>--Error : insmod: ERROR: could not insert module ./hello-1.ko: Operation not permitted</p>
  
  <p>so, I did <code>sudo modprobe -v hello-1.ko</code>. </p>
  
  <p>--Error : insmod: ERROR: could not insert module ./hello-1.ko: Operation not permitted</p>
  
  <p>But, while doing <code>lsmod</code> I am able to see my module and I am also able to do <code>modinfo hello_1</code>.</p>
  
  <p>hence, I tried , <code>modprobe hello_1</code> but it is showing </p>
  
  <p>--Error: modprobe: FATAL: Module hello_1 not found in directory /lib/modules/4.4.0-43-lowlatency</p>
  
  <p>Please help me with where I am lacking as this is my first program. Thanks!</p>