I am 18 but live at home. My son is due 01/2018 but could come 12/2017. My parents want to claim him but I also want to. Who has the right to claim my son on 2017 taxes?

Since I am the parent of my child, can my parents legally claim him on their taxes if he comes before January? I am wanting to claim him but we are living with my parents. Do they have the right to my son or do they have to have my permission first?