mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ioe-lkml@rameria.de>
To: Greg KH <greg@kroah.com>
Cc: Chris Wright <chrisw@osdl.org>,
	linux-kernel@vger.kernel.org, linux-security-module@wirex.com
Subject: Re: [PATCH] add securityfs for all LSMs to use
Date: Wed, 6 Jul 2005 22:12:59 +0200	[thread overview]
Message-ID: <200507062213.05337.ioe-lkml@rameria.de> (raw)
In-Reply-To: <20050706081725.GA15544@kroah.com>

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

Hi Greg,

On Wednesday 06 July 2005 10:17, Greg KH wrote:
> + * TODO:
> + *   I think I can get rid of these default_file_ops, but not quite sure...
> + */
> +static ssize_t default_read_file(struct file *file, char __user *buf,
> +				 size_t count, loff_t *ppos)
> +{
> +	return 0;
> +}
> +
> +static ssize_t default_write_file(struct file *file, const char __user *buf,
> +				   size_t count, loff_t *ppos)
> +{
> +	return count;
> +}

Yes, you can get rid of both, if you move read_null and write_null from 
drivers/char/mem.c to fs/libfs.c and export them.

But for what do you need a successful dummy read/write?


Regards

Ingo Oeser


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-07-06 20:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-06  8:17 Greg KH
2005-07-06 20:12 ` Ingo Oeser [this message]
2005-07-06 20:19   ` Greg KH
2005-07-07  4:59 ` Mike Waychison
2005-07-07 21:31   ` Greg KH
2005-07-07 21:37 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507062213.05337.ioe-lkml@rameria.de \
    --to=ioe-lkml@rameria.de \
    --cc=chrisw@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@wirex.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®