summaryrefslogtreecommitdiffstats
path: root/net/irda
Commit message (Expand)AuthorAgeFilesLines
* net/irda: handle iriap_register_lsap() allocation failureVegard Nossum2016-08-141-2/+6
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds2016-07-271-2/+5
|\
| * net/irda: fix NULL pointer dereference on memory allocation failureVegard Nossum2016-07-251-2/+5
* | net: ircomm, cleanup TIOCGSERIALJiri Slaby2016-06-251-8/+0Star
|/
* Merge tag 'tty-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds2016-05-213-27/+24Star
|\
| * tty: Replace ASYNC_INITIALIZED bit and update atomicallyPeter Hurley2016-04-302-8/+9
| * tty: Replace ASYNC_CHECK_CD and update atomicallyPeter Hurley2016-04-303-7/+4Star
| * tty: Replace ASYNC_NORMAL_ACTIVE bit and update atomicallyPeter Hurley2016-04-301-5/+5
| * tty: Replace ASYNC_CTS_FLOW bit and update atomicallyPeter Hurley2016-04-301-2/+1Star
| * tty: Replace TTY_THROTTLED bit tests with tty_throttled()Peter Hurley2016-04-301-1/+1
| * tty: Replace TTY_IO_ERROR bit tests with tty_io_error()Peter Hurley2016-04-302-4/+4
* | treewide: replace dev->trans_start update with helperFlorian Westphal2016-05-041-1/+1
|/
* Merge 4.5-rc4 into tty-nextGreg Kroah-Hartman2016-02-141-2/+1Star
|\
| * irda: fix a potential use-after-free in ircomm_param_requestWANG Cong2016-01-301-2/+1Star
* | tty: Remove ASYNC_CLOSINGPeter Hurley2016-01-281-4/+0Star
* | tty: Use termios c_*flag macrosPeter Hurley2016-01-282-15/+9Star
|/
* net: add validation for the socket syscall protocol argumentHannes Frederic Sowa2015-12-141-0/+3
* Merge tag 'tty-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds2015-11-051-30/+1Star
|\
| * tty: Remove ASYNC_CLOSING checks in open()/hangup() methodsPeter Hurley2015-10-181-30/+1Star
* | irda: Delete an unnecessary check before the function call "irlmp_unregister_...Markus Elfring2015-11-031-2/+1Star
* | irda: precedence bug in irlmp_seq_hb_idx()Dan Carpenter2015-10-211-1/+1
|/
* irda: use msecs_to_jiffies for conversion to jiffiesNicholas Mc Guire2015-05-251-2/+2
* net: Pass kern from net_proto_family.create to sk_allocEric W. Biederman2015-05-111-1/+1
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller2015-03-101-1/+3
|\
| * Merge tag 'tty-4.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds2015-03-081-1/+3
| |\
| | * net: irda: fix wait_until_sent poll timeoutJohan Hovold2015-03-071-1/+3
* | | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller2015-03-042-3/+3
|\| |
| * | irda: replace current->state by set_current_state()Fabian Frederick2015-02-232-3/+3
| |/
* / net: Remove iocb argument from sendmsg and recvmsgYing Xue2015-03-021-15/+14Star
|/
* irda: use msecs_to_jiffies for conversionsNicholas Mc Guire2015-01-311-3/+5
* irda: Convert function pointer arrays and uses to constJoe Perches2014-12-104-13/+15
* new helper: memcpy_to_msg()Al Viro2014-11-241-1/+1
* new helper: memcpy_from_msg()Al Viro2014-11-241-3/+3
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller2014-11-141-2/+0Star
|\
| * irda: stop calling sk_prot->disconnect() on connection failureLinus Torvalds2014-11-021-2/+0Star
* | irda: Fix build failures after IRDA_DEBUG->pr_debugJoe Perches2014-11-136-18/+6Star
* | irda: Convert IRDA_DEBUG to pr_debugJoe Perches2014-11-1236-1285/+797Star
* | irda: Remove IRDA_<TYPE> logging macrosJoe Perches2014-11-1225-206/+190Star
* | net: Add and use skb_copy_datagram_msg() helper.David S. Miller2014-11-051-1/+1
|/
* irda: add __init to irlan_openFabian Frederick2014-09-301-2/+2
* irda: Fix rd_frame control field initialization in irlap_send_rd_frame()Maks Naumov2014-08-141-1/+1
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds2014-08-065-5/+5
|\
| * irda: remove unnecessary break after returnFabian Frederick2014-07-162-2/+0Star
| * net: set name_assign_type in alloc_netdev()Tom Gundersen2014-07-162-2/+3
| * trivial: net/irda/irlmp.c: Fix closing brace followed by ifRasmus Villemoes2014-06-241-1/+2
* | tty: Remove tty_hung_up_p() tests from tty drivers' open()Peter Hurley2014-07-111-4/+2Star
|/
* net: add build-time checks for msg->msg_name sizeSteffen Hurrle2014-01-191-1/+1
* net/irda: Fix FSF address in file headersJeff Kirsher2013-12-0614-42/+14Star
* net: rework recvmsg handler msg_name and msg_namelen logicHannes Frederic Sowa2013-11-211-4/+0Star
* genetlink: only pass array to genl_register_family_with_ops()Johannes Berg2013-11-191-2/+1Star
s="hl kwd">gfs2_check_acl(struct inode *inode, int mask) { struct posix_acl *acl = NULL; int error; error = acl_get(GFS2_I(inode), ACL_ACCESS, &acl, NULL, NULL, NULL); if (error) return error; if (acl) { error = posix_acl_permission(inode, acl, mask); posix_acl_release(acl); return error; } return -EAGAIN; } static int munge_mode(struct gfs2_inode *ip, mode_t mode) { struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); struct buffer_head *dibh; int error; error = gfs2_trans_begin(sdp, RES_DINODE, 0); if (error) return error; error = gfs2_meta_inode_buffer(ip, &dibh); if (!error) { gfs2_assert_withdraw(sdp, (ip->i_inode.i_mode & S_IFMT) == (mode & S_IFMT)); ip->i_inode.i_mode = mode; gfs2_trans_add_bh(ip->i_gl, dibh, 1); gfs2_dinode_out(ip, dibh->b_data); brelse(dibh); } gfs2_trans_end(sdp); return 0; } int gfs2_acl_create(struct gfs2_inode *dip, struct gfs2_inode *ip) { struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); struct posix_acl *acl = NULL, *clone; struct gfs2_ea_request er; mode_t mode = ip->i_inode.i_mode; int error; if (!sdp->sd_args.ar_posix_acl) return 0; if (S_ISLNK(ip->i_inode.i_mode)) return 0; memset(&er, 0, sizeof(struct gfs2_ea_request)); er.er_type = GFS2_EATYPE_SYS; error = acl_get(dip, ACL_DEFAULT, &acl, NULL, &er.er_data, &er.er_data_len); if (error) return error; if (!acl) { mode &= ~current->fs->umask; if (mode != ip->i_inode.i_mode) error = munge_mode(ip, mode); return error; } clone = posix_acl_clone(acl, GFP_NOFS); error = -ENOMEM; if (!clone) goto out; posix_acl_release(acl); acl = clone; if (S_ISDIR(ip->i_inode.i_mode)) { er.er_name = GFS2_POSIX_ACL_DEFAULT; er.er_name_len = GFS2_POSIX_ACL_DEFAULT_LEN; error = gfs2_system_eaops.eo_set(ip, &er); if (error) goto out; } error = posix_acl_create_masq(acl, &mode); if (error < 0) goto out; if (error > 0) { er.er_name = GFS2_POSIX_ACL_ACCESS; er.er_name_len = GFS2_POSIX_ACL_ACCESS_LEN; posix_acl_to_xattr(acl, er.er_data, er.er_data_len); er.er_mode = mode; er.er_flags = GFS2_ERF_MODE; error = gfs2_system_eaops.eo_set(ip, &er); if (error) goto out; } else munge_mode(ip, mode); out: posix_acl_release(acl); kfree(er.er_data); return error; } int gfs2_acl_chmod(struct gfs2_inode *ip, struct iattr *attr) { struct posix_acl *acl = NULL, *clone; struct gfs2_ea_location el; char *data; unsigned int len; int error; error = acl_get(ip, ACL_ACCESS, &acl, &el, &data, &len); if (error) return error; if (!acl) return gfs2_setattr_simple(ip, attr); clone = posix_acl_clone(acl, GFP_NOFS); error = -ENOMEM; if (!clone) goto out; posix_acl_release(acl); acl = clone; error = posix_acl_chmod_masq(acl, attr->ia_mode); if (!error) { posix_acl_to_xattr(acl, data, len); error = gfs2_ea_acl_chmod(ip, &el, attr, data); } out: posix_acl_release(acl); brelse(el.el_bh); kfree(data); return error; }